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