Float font sizes.

This commit is contained in:
Hermann Kraus 2012-01-22 21:19:35 +01:00
parent 31fd5647f2
commit 1549fd92c3
2 changed files with 2 additions and 2 deletions

View file

@ -332,7 +332,7 @@ box2d<double> text_renderer<T>::prepare_glyphs(text_path *path)
pen.y = int(y * 64);
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));
FT_Face face = glyph->get_face()->get_face();

View file

@ -435,7 +435,7 @@ string_info &processed_text::get_string_info()
{
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));
info_.add_text(itr->str);
}