Float font sizes.
This commit is contained in:
parent
31fd5647f2
commit
1549fd92c3
2 changed files with 2 additions and 2 deletions
|
@ -332,7 +332,7 @@ box2d<double> text_renderer<T>::prepare_glyphs(text_path *path)
|
||||||
pen.y = int(y * 64);
|
pen.y = int(y * 64);
|
||||||
|
|
||||||
face_set_ptr faces = font_manager_.get_face_set(properties->face_name, properties->fontset);
|
face_set_ptr faces = font_manager_.get_face_set(properties->face_name, properties->fontset);
|
||||||
faces->set_pixel_sizes(properties->text_size); //TODO: Has to work with floats!
|
faces->set_character_sizes(properties->text_size);
|
||||||
|
|
||||||
glyph_ptr glyph = faces->get_glyph(unsigned(c));
|
glyph_ptr glyph = faces->get_glyph(unsigned(c));
|
||||||
FT_Face face = glyph->get_face()->get_face();
|
FT_Face face = glyph->get_face()->get_face();
|
||||||
|
|
|
@ -435,7 +435,7 @@ string_info &processed_text::get_string_info()
|
||||||
{
|
{
|
||||||
throw config_error("Unable to find specified font face '" + p.face_name + "'");
|
throw config_error("Unable to find specified font face '" + p.face_name + "'");
|
||||||
}
|
}
|
||||||
faces->set_pixel_sizes(p.text_size * scale_factor_);
|
faces->set_character_sizes(p.text_size * scale_factor_);
|
||||||
faces->get_string_info(info_, itr->str, &(itr->p));
|
faces->get_string_info(info_, itr->str, &(itr->p));
|
||||||
info_.add_text(itr->str);
|
info_.add_text(itr->str);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue