Project

General

Profile

Bug #8025 » 0001-Fix-WRasterImage-gm-drawText-clipping.patch

Bruce Toll, 02/03/2021 08:28 PM

View differences:

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;
(3-3/3)