fontations icon indicating copy to clipboard operation
fontations copied to clipboard

[skrifa] `trak` table not supported

Open behdad opened this issue 9 months ago • 2 comments

Ideally, trak table value should be applied to glyph advances reported. This is what CoreText, hb-ot, and hb-ft do.

behdad avatar Mar 17 '25 21:03 behdad

The trak table adjustments are mapped to point size rather than ppem and our API doesn’t currently support that. I’m wondering if we should add a new constructor to Size that also takes DPI so we can compute point size internally (or default to 96 or 72). What does HB do when ptem is unset?

dfrg avatar Mar 19 '25 14:03 dfrg

What does HB do when ptem is unset?

Default to 12pt, which is what CoreText does.

behdad avatar Mar 19 '25 17:03 behdad