Skip to content

text: Fix bounding box of bitmap glyphs in vertical mode

Alvin Wong requested to merge alvinwong/krita:alvin/bitmap-glyph-bbox into master

This separates the bitmap draw rect (which had been used as the bounding box) and the bounding box for calculating ascent/descent. The bounding box now comes from font metrics then combined with the bitmap rect. Doing this fixes the vertical line height of bitmap glyphs.

CCBUG:472566

Before:
before

After:
after

Edited by Alvin Wong

Merge request reports