- const GL::Font *const font=style->get_font();
-
- const float font_size=font->get_default_size();
- unsigned text_w=static_cast<unsigned>(font->get_string_width(text)*font_size);
-
- GL::push_matrix();
-
- part.get_alignment().apply(geom, text_w, static_cast<unsigned>(font->get_ascent()*font_size));
- GL::scale_uniform(font_size);
-
- const GL::Color &color=style->get_font_color();
- glColor3f(color.r, color.g, color.b);
- font->draw_string(text);
- glColor3f(1, 1, 1);