go-text / typesetting

High quality text shaping in pure Go.
Other
88 stars 11 forks source link

Fix cff charstring parsing #79

Closed benoitkugler closed 1 year ago

benoitkugler commented 1 year ago

Properly handle 16.16 fixed floats that may occur in 'cff' tables. Related to https://github.com/go-text/render/pull/8

benoitkugler commented 1 year ago

Thanks! I assume there's not much to be gained from trying to preserve the fractional component of the fixed?

@whereswaldon Actually its more that all the interpreter code should be updated to support float instead of integers. I've followed Nigel Tao sfnt implementation decision.