[cairo] Should cairo metrics be returned in 'glyph space'?

Keith Packard keithp at keithp.com
Mon Dec 27 17:48:33 PST 2004

PostScript reutrns text metrics in 'glyph space', which is the unscaled 
'unit' square space in which glyph outlines are originally provided.

If we matched this in cairo, our text metrics adventures would be at an 

If we don't, we need to figure out how to convert from 'glyph space' to 
'user space'.  Just running them through the font matrix "won't work" as 
the metrics aren't all vectors, so things like 'height' become meaningless 
without a glyph-centric coordinate space.

What I'm doing right now (to make things "work") is to extract only the 
scale portions from the glyph transformation and apply them to the metrics 
before returning them.  For scale-only transforms, this obviously works 
just fine.  But, any other transformation will be a bit confusing.

Another possibility is to create a vector datatype for the metrics 
generated from the glyph space metrics already computed.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20041227/f7663981/attachment.pgp

More information about the cairo mailing list