… | |
… | |
66 | layout_update (CFClient__Layout self) |
66 | layout_update (CFClient__Layout self) |
67 | { |
67 | { |
68 | /* use a random scale factor to account for unknown descenders, 0.8 works |
68 | /* use a random scale factor to account for unknown descenders, 0.8 works |
69 | * reasonably well with bitstream vera |
69 | * reasonably well with bitstream vera |
70 | */ |
70 | */ |
|
|
71 | PangoFontDescription *font = (PangoFontDescription *) |
71 | PangoFontDescription *font = pango_layout_get_font_description (self->pl); |
72 | pango_layout_get_font_description (self->pl); |
72 | |
73 | |
73 | int height = self->base_height * (PANGO_SCALE * 8 / 10); |
74 | int height = self->base_height * (PANGO_SCALE * 8 / 10); |
74 | |
75 | |
75 | if (height < MIN_FONT_HEIGHT) |
76 | if (height < MIN_FONT_HEIGHT) |
76 | height = MIN_FONT_HEIGHT; |
77 | height = MIN_FONT_HEIGHT; |