Baseline font offset calculation changed between versions? #498
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
|
Vertical metrics are used for laying out vertical text and are often different to the horizontal ones. Could you try the Horizontal metrics and report back? They should be unchanged. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the follow-up. There's actually more to this than meets the eye so I'm adding per-line measured metrics so callers can retrieve the line Ascender, Baseline, Descender, LineHeight, and flow-position/extent (Start/Extent) directly from The signature will be public static LineMetrics[] GetLineMetrics(ReadOnlySpan<char> text, TextOptions options)A few important points:
So in short: metrics are correct from a typographic/layout perspective, but rendered ink can still visually diverge slightly (especially near descenders), which is normal. |
Beta Was this translation helpful? Give feedback.









Cambria
Constantia
OCRB
This font demonstrates how glyphs do not always line up with metrics. I've checked the values we parse from the font with other tools (fontdrop) and they are correct, but the p stem is short and does not reach the descent line.