Bug #8025 » 0001-Fix-WRasterImage-gm-drawText-clipping.patch
src/Wt/FontSupportPango.C | ||
---|---|---|
= pangoUnitsToDouble(pango_font_metrics_get_descent(metrics));
|
||
pango_font_metrics_unref(metrics);
|
||
double leading = (ascent + descent) - font.sizeLength(16).toPixels();
|
||
// ascent < leading is an odd thing. it happens with a font like
|
||
// Cursive.
|
||
if (ascent > leading)
|
||
ascent -= leading;
|
||
else
|
||
leading = 0;
|
||
double baseline = ascent;
|
||
double height = ascent + descent;
|
- « Previous
- 1
- 2
- 3
- Next »