if(const Part *text_part = style->get_part("text"))
{
const Sides &margin = text_part->get_margin();
- const GL::Font *font = style->get_font();
+ const GL::Font &font = style->get_font();
float font_size = style->get_font_size();
- unsigned line_height = static_cast<unsigned>((font->get_ascent()-font->get_descent())*font_size);
+ unsigned line_height = static_cast<unsigned>((font.get_ascent()-font.get_descent())*font_size);
geom.h = max(geom.h, line_height+margin.top+margin.bottom);
}
}