Fix font scaling.

Refs #1273.
This commit is contained in:
Hermann Kraus 2012-06-30 01:28:20 +02:00
parent f866ab1f80
commit 512a9af53f

View file

@ -358,7 +358,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(c->format->face_name, c->format->fontset);
//faces->set_character_sizes(c->format->text_size);
faces->set_character_sizes(c->format->text_size*scale_factor_);
glyph_ptr glyph = faces->get_glyph(unsigned(c->c));
FT_Face face = glyph->get_face()->get_face();