[NTG-context] LuaTeX-plain OpenType Features Select

AĆ­re Funvake aire.funvake at gmail.com
Mon May 12 22:46:42 CEST 2014

On Mon May 12 22:01:04 2014, Hans Hagen wrote:
> On 5/12/2014 9:48 PM, Aíre Funvake wrote:
>> Hi all,
>> Trying to select "slashed zero" and "lining figures" from a
>> font. For Lucida Bright OT, as another example, +scmp works,
>> but not for Charter ITC Pro. But the font that concerns me
>> the most right now, is TheSansMono Condensed...
>> Font URL:
>> http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/
>> PDF Info:
>> https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf
>> 8<-------------------minimal example---------------------------->8
>> \newdimen\fntcodesz
>> \fntcodesz = 11.5pt
>> \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
>> \kwr
>> 0123456789
>> \bye
>> 8<-------------------------------------------------------------->8
> sometimes you need to select a script/language combination too or when
> digits are concerned disable oldstyle

I'm too inexperienced to know what that means, or how to apply that.

I've opened the font in FontForge, and can see the glyphs I'm
looking for, but again, it does not carry much applicable meaning
for me. For example, can I use this information?:

Slash 0, Lining Figures: (0x10120) U+0030 "zero.lf.slashed" DIGIT ZERO
      1, Lining Figures: (0x10121) U+0031 "one.lf" DIGIT ONE
Slash 0, "Basic": (0x1012b) U+0030 "zero.basic.slashed" DIGIT ZERO
      1, "Basic": (0x1012c) U+0031 "one.basic" DIGIT ONE

Also, under Font Info -> Lookups, I see something which may help:

lookup zeroSlashedZeroinLatinlookup25 {
  lookupflag 0;
    sub \zero by \zero.slashed ;
    sub \zero.oldstyle by \zero.oldstyle.slashed ;
    sub \zero.alt1 by \zero.alt1.slashed ;
    sub \zero.lf by \zero.lf.slashed ;
    sub \zero.basic by \zero.basic.slashed ;
} zeroSlashedZeroinLatinlookup25;

The whole feature set:

Thanks for your time,

More information about the ntg-context mailing list