[HarfBuzz] (hb-view) feature 'onum' needs non numeric character

Rolf Langenhuijzen rolf.langenhuijzen at xs4all.nl
Mon May 28 14:24:38 PDT 2012

I am (was actually, just changed the settings) receiving a digest of the list messages and did not see JK 's reply about the script setting.
I did read about latn being a good default fallback candidate in some other thread though.

So, I just tried this on the font I had some issues with and this indeed gives better results (both the figures as the fractions).


On May 28, 2012, at 10:35 PM, Behdad Esfahbod wrote:

> On 05/28/2012 04:29 PM, Rolf Langenhuijzen wrote:
>> Maybe not the most important things, but because I'm testing with hb-view I
>> just report what I come across…
>> When I test a text like "1960" with the onum feature on, it keeps showing the
>> default lining figures.
>> If you replace the text with a non numeric character before or after (with our
>> without a space) it works correctly ("a 1960" or "1960a").
>> Tested with multiple fonts. Maybe a bug?
>> PS > just tested 'frac' as well and also fractions only show when theres
>> additional text like "1/2 a" .. something like "1/2 4" doesn't work either.
> Sounds like a font bug to me, I can imagine how this can happen.  At any rate,
> I need to see the font before I can help at all.  Feel free to send it to me
> off list.
> behdad
>> Rolf
>> |hv-view --output=test.png --features="+onum=1" --margin=100 --font-size=200 "my font||.otf" "1960"|
>> |hb-view --output=test.png --features="+onum=1" --margin=100 --font-size=200 "my font||.otf" "a 1960"|
>> _______________________________________________
>> HarfBuzz mailing list
>> HarfBuzz at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/harfbuzz

More information about the HarfBuzz mailing list