- if(!style)
- return;
-
- geom.h = text.get_height();
- geom.w = text.get_width();
- if(const Part *text_part = style->get_part("text"))
- {
- const Sides &margin = text_part->get_margin();
- geom.w += margin.left+margin.right;
- geom.h += margin.top+margin.bottom;
- }