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