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

Behdad Esfahbod behdad at behdad.org
Mon May 28 13:42:36 PDT 2012


On 05/28/2012 04:38 PM, Jonathan Kew wrote:
>>
>> |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"|
>>
> 
> (Without actually checking the code to see how it goes about things,) I'd
> guess it may not be identifying the appropriate script to use if the only
> characters in the text are "common" ones such as digits and punctuation. Try
> explicitly setting the script to Latin.

Ah that's a very good point.  Yes, I believe in this case we end up prefering
DFLT to latn.  These are some of the cases OpenType cannot handle easily.

behdad



More information about the HarfBuzz mailing list