[HarfBuzz] Auto Fractions vs VULGAR FRACTION characters
Behdad Esfahbod
behdad at behdad.org
Sun Dec 22 16:54:41 PST 2013
James,
Thanks for testing!
On 13-12-22 07:46 PM, James Cloos wrote:
> Try rendering 1⅖ with hb-view.
Very good point. Indeed, this happens because U+2156 has a compat
decomposition to <0032,2044,0035>, so the fact that it was separated from the
previous digit is lost in the expansion.
One way to work around this is to intercept those decompositions and insert a
ZWSP before them.
Roozbeh, WDYT?
> With a numr/dnom font I get the same as 12⁄5, rather than the same as 12⁄5,
> as I’d expect.
>
> (Note the U+200B ZERO WIDTH SPACE after the 1 in the latter string.)
>
> I’m at 76fff252.
>
> Pango-view also renders that string wrong, though differently wrong.
>
> -JimC
> --
> James Cloos <cloos at jhcloos.com> OpenPGP: 1024D/ED7DAEA6
> _______________________________________________
> HarfBuzz mailing list
> HarfBuzz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/harfbuzz
>
--
behdad
http://behdad.org/
More information about the HarfBuzz
mailing list