[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft] Nonsensical(?) values in font metrics.

From: R0b0t1
Subject: [ft] Nonsensical(?) values in font metrics.
Date: Sat, 22 Apr 2017 22:07:38 -0500

If I use face->bbox.xMax, face->bbox.yMax, face->max_advance_width, or
face->max_advance_height I receive a value which is approximately
twice as big as any rendered glyph, though halving it produces a value
slightly smaller than any rendered glyph. Is this an issue with the
font itself?

What is the best way to draw monospaced fonts? I was attempting to
calculate pen position assuming the glyphs could be laid out in a
grid. Based on the strange values in the font metrics and other
program's behavior it looks like glyphs are always drawn linewise,
respecting the advance of the last glyph, even if they are all the
same. Can anyone comment?

I can provide test code that should compile on most systems if it
would be helpful.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]