ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* LuaTeX-plain OpenType Features Select
@ 2014-05-12 19:48 Aíre Funvake
  2014-05-12 20:01 ` Hans Hagen
  0 siblings, 1 reply; 14+ messages in thread
From: Aíre Funvake @ 2014-05-12 19:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

Thank you for your attention,
Regards
Aíre

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: LuaTeX-plain OpenType Features Select
  2014-05-12 19:48 LuaTeX-plain OpenType Features Select Aíre Funvake
@ 2014-05-12 20:01 ` Hans Hagen
  2014-05-12 20:46   ` Aíre Funvake
  0 siblings, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2014-05-12 20:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

Hans

(I have some lucas fonts but not these so I can't test.)

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: LuaTeX-plain OpenType Features Select
  2014-05-12 20:01 ` Hans Hagen
@ 2014-05-12 20:46   ` Aíre Funvake
  2014-05-12 20:52     ` Hans Hagen
  0 siblings, 1 reply; 14+ messages in thread
From: Aíre Funvake @ 2014-05-12 20:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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:
https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-W5Regular.fea

Thanks for your time,
Aíre.

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: LuaTeX-plain OpenType Features Select
  2014-05-12 20:46   ` Aíre Funvake
@ 2014-05-12 20:52     ` Hans Hagen
  2014-05-12 20:59       ` Aíre Funvake
  0 siblings, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2014-05-12 20:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 5/12/2014 10:46 PM, Aíre Funvake wrote:
> 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.

there is some info in font manuals and the context wiki

> 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
>        ...

so you need to select the lnum feature too

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: LuaTeX-plain OpenType Features Select
  2014-05-12 20:52     ` Hans Hagen
@ 2014-05-12 20:59       ` Aíre Funvake
  2014-05-12 21:12         ` Aíre Funvake
  0 siblings, 1 reply; 14+ messages in thread
From: Aíre Funvake @ 2014-05-12 20:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon May 12 22:52:43 2014, Hans Hagen wrote:
> On 5/12/2014 10:46 PM, Aíre Funvake wrote:
>> 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.
>
> there is some info in font manuals and the context wiki
>
>> 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
>>        ...
>
> so you need to select the lnum feature too
>
Was this not it?:
...
\font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
...
But thanks; will keep on reading; if solution found, will add it here.
Regards,
Aíre
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: LuaTeX-plain OpenType Features Select
  2014-05-12 20:59       ` Aíre Funvake
@ 2014-05-12 21:12         ` Aíre Funvake
  2014-05-13 17:48           ` Aíre Funvake
  0 siblings, 1 reply; 14+ messages in thread
From: Aíre Funvake @ 2014-05-12 21:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 2014-05-12, 22:59 , Aíre Funvake wrote:
> On Mon May 12 22:52:43 2014, Hans Hagen wrote:
>> On 5/12/2014 10:46 PM, Aíre Funvake wrote:
>>> 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.
>>
>> there is some info in font manuals and the context wiki
>>
>>> 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
>>>        ...
>>
>> so you need to select the lnum feature too
>>
> Was this not it?:
> ...
> \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
> ...
> But thanks; will keep on reading; if solution found, will add it here.
> Regards,
> Aíre
> 
Solution:
\font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
Thank you!

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: LuaTeX-plain OpenType Features Select
  2014-05-12 21:12         ` Aíre Funvake
@ 2014-05-13 17:48           ` Aíre Funvake
  2014-05-13 17:56             ` Hans Hagen
  0 siblings, 1 reply; 14+ messages in thread
From: Aíre Funvake @ 2014-05-13 17:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon May 12 23:12:06 2014, Aíre Funvake wrote:
> On 2014-05-12, 22:59 , Aíre Funvake wrote:
>> On Mon May 12 22:52:43 2014, Hans Hagen wrote:
>>> On 5/12/2014 10:46 PM, Aíre Funvake wrote:
>>>> 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.
>>>
>>> there is some info in font manuals and the context wiki
>>>
>>>> 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
>>>>        ...
>>>
>>> so you need to select the lnum feature too
>>>
>> Was this not it?:
>> ...
>> \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
>> ...
>> But thanks; will keep on reading; if solution found, will add it here.
>> Regards,
>> Aíre
>>
> Solution:
> \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
> Thank you!
>

Spoke too soon. The "zero.slashed" is selected, instead of 
"zero.lf.slashed",
so that the zero is smaller than the rest of the lining figure numbers. 
In
desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and 
it
worked fine. `;color=XXXXXX` also works with `luaotfload`, but not with
LuaTeX-plain from ConTeXt.

Any ideas would be welcome. Exhausted Google query permutations and most
font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.

Can I maybe as a hack switch the glyphs, or something?

Thanks again & regards,
Aíre.

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: LuaTeX-plain OpenType Features Select
  2014-05-13 17:48           ` Aíre Funvake
@ 2014-05-13 17:56             ` Hans Hagen
  2014-05-13 18:16               ` Aíre Funvake
  0 siblings, 1 reply; 14+ messages in thread
From: Hans Hagen @ 2014-05-13 17:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 5/13/2014 7:48 PM, Aíre Funvake wrote:
> On Mon May 12 23:12:06 2014, Aíre Funvake wrote:
>> On 2014-05-12, 22:59 , Aíre Funvake wrote:
>>> On Mon May 12 22:52:43 2014, Hans Hagen wrote:
>>>> On 5/12/2014 10:46 PM, Aíre Funvake wrote:
>>>>> 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.
>>>>
>>>> there is some info in font manuals and the context wiki
>>>>
>>>>> 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
>>>>>         ...
>>>>
>>>> so you need to select the lnum feature too
>>>>
>>> Was this not it?:
>>> ...
>>> \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
>>> ...
>>> But thanks; will keep on reading; if solution found, will add it here.
>>> Regards,
>>> Aíre
>>>
>> Solution:
>> \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
>> Thank you!
>>
>
> Spoke too soon. The "zero.slashed" is selected, instead of
> "zero.lf.slashed",
> so that the zero is smaller than the rest of the lining figure numbers.
> In
> desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and
> it
> worked fine. `;color=XXXXXX` also works with `luaotfload`, but not with
> LuaTeX-plain from ConTeXt.

no, and that is unlikely to show up in context as it makes no sense to 
specify colors that way .. just use the normal color commands

> Any ideas would be welcome. Exhausted Google query permutations and most
> font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.
>
> Can I maybe as a hack switch the glyphs, or something?

how about adding

   mode=node

in the plain setup (often not needed in context)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: LuaTeX-plain OpenType Features Select
  2014-05-13 17:56             ` Hans Hagen
@ 2014-05-13 18:16               ` Aíre Funvake
  2014-05-13 18:57                 ` Hans Hagen
  0 siblings, 1 reply; 14+ messages in thread
From: Aíre Funvake @ 2014-05-13 18:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue May 13 19:56:34 2014, Hans Hagen wrote:
> On 5/13/2014 7:48 PM, Aíre Funvake wrote:
>> On Mon May 12 23:12:06 2014, Aíre Funvake wrote:
>>> On 2014-05-12, 22:59 , Aíre Funvake wrote:
>>>> On Mon May 12 22:52:43 2014, Hans Hagen wrote:
>>>>> On 5/12/2014 10:46 PM, Aíre Funvake wrote:
>>>>>> 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.
>>>>>
>>>>> there is some info in font manuals and the context wiki
>>>>>
>>>>>> 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
>>>>>>         ...
>>>>>
>>>>> so you need to select the lnum feature too
>>>>>
>>>> Was this not it?:
>>>> ...
>>>> \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
>>>> ...
>>>> But thanks; will keep on reading; if solution found, will add it here.
>>>> Regards,
>>>> Aíre
>>>>
>>> Solution:
>>> \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
>>> Thank you!
>>>
>>
>> Spoke too soon. The "zero.slashed" is selected, instead of
>> "zero.lf.slashed",
>> so that the zero is smaller than the rest of the lining figure numbers.
>> In
>> desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and
>> it
>> worked fine. `;color=XXXXXX` also works with `luaotfload`, but not with
>> LuaTeX-plain from ConTeXt.
>
> no, and that is unlikely to show up in context as it makes no sense to
> specify colors that way .. just use the normal color commands
>
>> Any ideas would be welcome. Exhausted Google query permutations and most
>> font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.
>>
>> Can I maybe as a hack switch the glyphs, or something?
>
> how about adding
>
>   mode=node
>
> in the plain setup (often not needed in context)
>
> Hans
>
Thanks for the reply. Tried `mode=node`. Read about it, but never 
thought
of putting it here!? The correct specification then is:

\font\mono = {TheSansMonoCd-W5Regular:%
         script=latn;+lnum;+zero;mode=node} at \fntsze

Confused about the color though. Read most of luatexref-t.pdf, and may
have missed it. The only reference (and it works in `luaotfload` under
TeXLive2013) is like this:

\font\mono = {TheSansMonoCd-W5Regular:%
         script=latn;+lnum;+zero;mode=node;color=336699} at \fntsze
                                           ~~~~~~~~~~~~
Found no other reference to setting color on fonts in LuaTeX-plain (the
ConTeXt version). Would love a pointer to the information though.

Big thanks for the `mode=node`; took me 6hrs to try and fix to no avail.

All the best,
Aíre.

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: LuaTeX-plain OpenType Features Select
  2014-05-13 18:16               ` Aíre Funvake
@ 2014-05-13 18:57                 ` Hans Hagen
  2014-05-13 19:10                   ` Aíre Funvake
  2014-05-13 22:16                   ` Philipp Gesang
  0 siblings, 2 replies; 14+ messages in thread
From: Hans Hagen @ 2014-05-13 18:57 UTC (permalink / raw)
  To: ntg-context

On 5/13/2014 8:16 PM, Aíre Funvake wrote:
> On Tue May 13 19:56:34 2014, Hans Hagen wrote:
>> On 5/13/2014 7:48 PM, Aíre Funvake wrote:
>>> On Mon May 12 23:12:06 2014, Aíre Funvake wrote:
>>>> On 2014-05-12, 22:59 , Aíre Funvake wrote:
>>>>> On Mon May 12 22:52:43 2014, Hans Hagen wrote:
>>>>>> On 5/12/2014 10:46 PM, Aíre Funvake wrote:
>>>>>>> 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.
>>>>>>
>>>>>> there is some info in font manuals and the context wiki
>>>>>>
>>>>>>> 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
>>>>>>>          ...
>>>>>>
>>>>>> so you need to select the lnum feature too
>>>>>>
>>>>> Was this not it?:
>>>>> ...
>>>>> \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
>>>>> ...
>>>>> But thanks; will keep on reading; if solution found, will add it here.
>>>>> Regards,
>>>>> Aíre
>>>>>
>>>> Solution:
>>>> \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
>>>> Thank you!
>>>>
>>>
>>> Spoke too soon. The "zero.slashed" is selected, instead of
>>> "zero.lf.slashed",
>>> so that the zero is smaller than the rest of the lining figure numbers.
>>> In
>>> desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and
>>> it
>>> worked fine. `;color=XXXXXX` also works with `luaotfload`, but not with
>>> LuaTeX-plain from ConTeXt.
>>
>> no, and that is unlikely to show up in context as it makes no sense to
>> specify colors that way .. just use the normal color commands
>>
>>> Any ideas would be welcome. Exhausted Google query permutations and most
>>> font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.
>>>
>>> Can I maybe as a hack switch the glyphs, or something?
>>
>> how about adding
>>
>>    mode=node
>>
>> in the plain setup (often not needed in context)
>>
>> Hans
>>
> Thanks for the reply. Tried `mode=node`. Read about it, but never
> thought
> of putting it here!? The correct specification then is:
>
> \font\mono = {TheSansMonoCd-W5Regular:%
>           script=latn;+lnum;+zero;mode=node} at \fntsze
>
> Confused about the color though. Read most of luatexref-t.pdf, and may
> have missed it. The only reference (and it works in `luaotfload` under
> TeXLive2013) is like this:
>
> \font\mono = {TheSansMonoCd-W5Regular:%
>           script=latn;+lnum;+zero;mode=node;color=336699} at \fntsze
>                                             ~~~~~~~~~~~~

so it looks like oftload adds that (or maybe the latex font definition 
code) but even then, it's probably implemented someplace else in the 
latex code

> Found no other reference to setting color on fonts in LuaTeX-plain (the
> ConTeXt version). Would love a pointer to the information though.

it must be something latex i think (maybe to provide xetex 
compatibility) but it's definitely not in luatex (nor will be) and also 
not in context (which has more advanced color support than hex specs 
anyway)

if you want color, use context instead of plain

> Big thanks for the `mode=node`; took me 6hrs to try and fix to no avail.

best try out these things with context (and if needed turn on tracing)

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: LuaTeX-plain OpenType Features Select
  2014-05-13 18:57                 ` Hans Hagen
@ 2014-05-13 19:10                   ` Aíre Funvake
  2014-05-13 22:16                   ` Philipp Gesang
  1 sibling, 0 replies; 14+ messages in thread
From: Aíre Funvake @ 2014-05-13 19:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue May 13 20:57:55 2014, Hans Hagen wrote:
> On 5/13/2014 8:16 PM, Aíre Funvake wrote:
>> On Tue May 13 19:56:34 2014, Hans Hagen wrote:
>>> On 5/13/2014 7:48 PM, Aíre Funvake wrote:
>>>> On Mon May 12 23:12:06 2014, Aíre Funvake wrote:
>>>>> On 2014-05-12, 22:59 , Aíre Funvake wrote:
>>>>>> On Mon May 12 22:52:43 2014, Hans Hagen wrote:
>>>>>>> On 5/12/2014 10:46 PM, Aíre Funvake wrote:
>>>>>>>> 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.
>>>>>>>
>>>>>>> there is some info in font manuals and the context wiki
>>>>>>>
>>>>>>>> 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
>>>>>>>>          ...
>>>>>>>
>>>>>>> so you need to select the lnum feature too
>>>>>>>
>>>>>> Was this not it?:
>>>>>> ...
>>>>>> \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
>>>>>> ...
>>>>>> But thanks; will keep on reading; if solution found, will add it
>>>>>> here.
>>>>>> Regards,
>>>>>> Aíre
>>>>>>
>>>>> Solution:
>>>>> \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at
>>>>> 12pt
>>>>> Thank you!
>>>>>
>>>>
>>>> Spoke too soon. The "zero.slashed" is selected, instead of
>>>> "zero.lf.slashed",
>>>> so that the zero is smaller than the rest of the lining figure
>>>> numbers.
>>>> In
>>>> desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and
>>>> it
>>>> worked fine. `;color=XXXXXX` also works with `luaotfload`, but not
>>>> with
>>>> LuaTeX-plain from ConTeXt.
>>>
>>> no, and that is unlikely to show up in context as it makes no sense to
>>> specify colors that way .. just use the normal color commands
>>>
>>>> Any ideas would be welcome. Exhausted Google query permutations and
>>>> most
>>>> font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.
>>>>
>>>> Can I maybe as a hack switch the glyphs, or something?
>>>
>>> how about adding
>>>
>>>    mode=node
>>>
>>> in the plain setup (often not needed in context)
>>>
>>> Hans
>>>
>> Thanks for the reply. Tried `mode=node`. Read about it, but never
>> thought
>> of putting it here!? The correct specification then is:
>>
>> \font\mono = {TheSansMonoCd-W5Regular:%
>>           script=latn;+lnum;+zero;mode=node} at \fntsze
>>
>> Confused about the color though. Read most of luatexref-t.pdf, and may
>> have missed it. The only reference (and it works in `luaotfload` under
>> TeXLive2013) is like this:
>>
>> \font\mono = {TheSansMonoCd-W5Regular:%
>>           script=latn;+lnum;+zero;mode=node;color=336699} at \fntsze
>>                                             ~~~~~~~~~~~~
>
> so it looks like oftload adds that (or maybe the latex font definition
> code) but even then, it's probably implemented someplace else in the
> latex code
>
>> Found no other reference to setting color on fonts in LuaTeX-plain (the
>> ConTeXt version). Would love a pointer to the information though.
>
> it must be something latex i think (maybe to provide xetex
> compatibility) but it's definitely not in luatex (nor will be) and
> also not in context (which has more advanced color support than hex
> specs anyway)
>
> if you want color, use context instead of plain

It's OK, can live without the color for now.

>
>> Big thanks for the `mode=node`; took me 6hrs to try and fix to no avail.
>
> best try out these things with context (and if needed turn on tracing)

Probably misplaced intentions, but I want to want to understand TeX
properly first (TeXbook, etc.), before moving on to the higher level
of ConTeXt. But in the meantime, it would still be nice if good
looking documents could be produced, even if it requires much manual
tweaking. Started as an assembler programmer, then Forth, then C,
etc. Learn best from the bottom up:)

Have a good evening, and thank you for your time and attention.

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: LuaTeX-plain OpenType Features Select
  2014-05-13 18:57                 ` Hans Hagen
  2014-05-13 19:10                   ` Aíre Funvake
@ 2014-05-13 22:16                   ` Philipp Gesang
  2014-05-15  7:09                     ` Aíre Funvake
  1 sibling, 1 reply; 14+ messages in thread
From: Philipp Gesang @ 2014-05-13 22:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 5327 bytes --]

···<date: 2014-05-13, Tuesday>···<from: Hans Hagen>···

> On 5/13/2014 8:16 PM, Aíre Funvake wrote:
> > On Tue May 13 19:56:34 2014, Hans Hagen wrote:
> >> On 5/13/2014 7:48 PM, Aíre Funvake wrote:
> >>> On Mon May 12 23:12:06 2014, Aíre Funvake wrote:
> >>>> On 2014-05-12, 22:59 , Aíre Funvake wrote:
> >>>>> On Mon May 12 22:52:43 2014, Hans Hagen wrote:
> >>>>>> On 5/12/2014 10:46 PM, Aíre Funvake wrote:
> >>>>>>> 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.
> >>>>>>
> >>>>>> there is some info in font manuals and the context wiki
> >>>>>>
> >>>>>>> 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
> >>>>>>>          ...
> >>>>>>
> >>>>>> so you need to select the lnum feature too
> >>>>>>
> >>>>> Was this not it?:
> >>>>> ...
> >>>>> \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
> >>>>> ...
> >>>>> But thanks; will keep on reading; if solution found, will add it here.
> >>>>> Regards,
> >>>>> Aíre
> >>>>>
> >>>> Solution:
> >>>> \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
> >>>> Thank you!
> >>>>
> >>>
> >>> Spoke too soon. The "zero.slashed" is selected, instead of
> >>> "zero.lf.slashed",
> >>> so that the zero is smaller than the rest of the lining figure numbers.
> >>> In
> >>> desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and
> >>> it
> >>> worked fine. `;color=XXXXXX` also works with `luaotfload`, but not with
> >>> LuaTeX-plain from ConTeXt.
> >>
> >> no, and that is unlikely to show up in context as it makes no sense to
> >> specify colors that way .. just use the normal color commands
> >>
> >>> Any ideas would be welcome. Exhausted Google query permutations and most
> >>> font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.
> >>>
> >>> Can I maybe as a hack switch the glyphs, or something?
> >>
> >> how about adding
> >>
> >>    mode=node
> >>
> >> in the plain setup (often not needed in context)
> >>
> >> Hans
> >>
> > Thanks for the reply. Tried `mode=node`. Read about it, but never
> > thought
> > of putting it here!? The correct specification then is:
> >
> > \font\mono = {TheSansMonoCd-W5Regular:%
> >           script=latn;+lnum;+zero;mode=node} at \fntsze
> >
> > Confused about the color though. Read most of luatexref-t.pdf, and may
> > have missed it. The only reference (and it works in `luaotfload` under
> > TeXLive2013) is like this:
> >
> > \font\mono = {TheSansMonoCd-W5Regular:%
> >           script=latn;+lnum;+zero;mode=node;color=336699} at \fntsze
> >                                             ~~~~~~~~~~~~
> 
> so it looks like oftload adds that (or maybe the latex font definition 
> code) but even then, it's probably implemented someplace else in the 
> latex code
> 
> > Found no other reference to setting color on fonts in LuaTeX-plain (the
> > ConTeXt version). Would love a pointer to the information though.
> 
> it must be something latex i think (maybe to provide xetex 
> compatibility) but it's definitely not in luatex (nor will be) and also 
> not in context (which has more advanced color support than hex specs 
> anyway)

That’s correct. The “color” key triggers a custom callback that
tints every glyph of the defined font. It’s part of Luaotfload
solely for compatibility for Xetex. IMO it’s not worth the
hassle; I recommend using a proper color package instead.

> if you want color, use context instead of plain

Probably the best suggestion =)

Philipp


[-- Attachment #1.2: Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: LuaTeX-plain OpenType Features Select
  2014-05-13 22:16                   ` Philipp Gesang
@ 2014-05-15  7:09                     ` Aíre Funvake
  2014-05-15 16:29                       ` Philipp Gesang
  0 siblings, 1 reply; 14+ messages in thread
From: Aíre Funvake @ 2014-05-15  7:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed May 14 00:16:54 2014, Philipp Gesang wrote:
> ···<date: 2014-05-13, Tuesday>···<from: Hans Hagen>···
>
>> On 5/13/2014 8:16 PM, Aíre Funvake wrote:
>>> On Tue May 13 19:56:34 2014, Hans Hagen wrote:
>>>> On 5/13/2014 7:48 PM, Aíre Funvake wrote:
>>>>> On Mon May 12 23:12:06 2014, Aíre Funvake wrote:
>>>>>> On 2014-05-12, 22:59 , Aíre Funvake wrote:
>>>>>>> On Mon May 12 22:52:43 2014, Hans Hagen wrote:
>>>>>>>> On 5/12/2014 10:46 PM, Aíre Funvake wrote:
>>>>>>>>> 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.
>>>>>>>>
>>>>>>>> there is some info in font manuals and the context wiki
>>>>>>>>
>>>>>>>>> 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
>>>>>>>>>          ...
>>>>>>>>
>>>>>>>> so you need to select the lnum feature too
>>>>>>>>
>>>>>>> Was this not it?:
>>>>>>> ...
>>>>>>> \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
>>>>>>> ...
>>>>>>> But thanks; will keep on reading; if solution found, will add it here.
>>>>>>> Regards,
>>>>>>> Aíre
>>>>>>>
>>>>>> Solution:
>>>>>> \font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
>>>>>> Thank you!
>>>>>>
>>>>>
>>>>> Spoke too soon. The "zero.slashed" is selected, instead of
>>>>> "zero.lf.slashed",
>>>>> so that the zero is smaller than the rest of the lining figure numbers.
>>>>> In
>>>>> desperation, tried luatex with 'luaotfload.sty' under TeXLive2013, and
>>>>> it
>>>>> worked fine. `;color=XXXXXX` also works with `luaotfload`, but not with
>>>>> LuaTeX-plain from ConTeXt.
>>>>
>>>> no, and that is unlikely to show up in context as it makes no sense to
>>>> specify colors that way .. just use the normal color commands
>>>>
>>>>> Any ideas would be welcome. Exhausted Google query permutations and most
>>>>> font info if for LaTeX, pdfTeX, pdfLaTeX, LuaLaTeX or ConTeXt.
>>>>>
>>>>> Can I maybe as a hack switch the glyphs, or something?
>>>>
>>>> how about adding
>>>>
>>>>    mode=node
>>>>
>>>> in the plain setup (often not needed in context)
>>>>
>>>> Hans
>>>>
>>> Thanks for the reply. Tried `mode=node`. Read about it, but never
>>> thought
>>> of putting it here!? The correct specification then is:
>>>
>>> \font\mono = {TheSansMonoCd-W5Regular:%
>>>           script=latn;+lnum;+zero;mode=node} at \fntsze
>>>
>>> Confused about the color though. Read most of luatexref-t.pdf, and may
>>> have missed it. The only reference (and it works in `luaotfload` under
>>> TeXLive2013) is like this:
>>>
>>> \font\mono = {TheSansMonoCd-W5Regular:%
>>>           script=latn;+lnum;+zero;mode=node;color=336699} at \fntsze
>>>                                             ~~~~~~~~~~~~
>>
>> so it looks like oftload adds that (or maybe the latex font definition
>> code) but even then, it's probably implemented someplace else in the
>> latex code
>>
>>> Found no other reference to setting color on fonts in LuaTeX-plain (the
>>> ConTeXt version). Would love a pointer to the information though.
>>
>> it must be something latex i think (maybe to provide xetex
>> compatibility) but it's definitely not in luatex (nor will be) and also
>> not in context (which has more advanced color support than hex specs
>> anyway)
>
> That’s correct. The “color” key triggers a custom callback that
> tints every glyph of the defined font. It’s part of Luaotfload
> solely for compatibility for Xetex. IMO it’s not worth the
> hassle; I recommend using a proper color package instead.
>
Thank you for the kind advice, Philipp. Is there a color package
that works with ConTeXt's luatex-plain.fmt that you can suggest?

>> if you want color, use context instead of plain
>
> Probably the best suggestion =)
>
Noted. My ultimate goal.

> Philipp

Regards,
Aíre

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: LuaTeX-plain OpenType Features Select
  2014-05-15  7:09                     ` Aíre Funvake
@ 2014-05-15 16:29                       ` Philipp Gesang
  0 siblings, 0 replies; 14+ messages in thread
From: Philipp Gesang @ 2014-05-15 16:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 685 bytes --]

···<date: 2014-05-15, Thursday>···<from: Aíre Funvake>···
> On Wed May 14 00:16:54 2014, Philipp Gesang wrote:
> > That’s correct. The “color” key triggers a custom callback that
> > tints every glyph of the defined font. It’s part of Luaotfload
> > solely for compatibility for Xetex. IMO it’s not worth the
> > hassle; I recommend using a proper color package instead.
> >
> Thank you for the kind advice, Philipp. Is there a color package
> that works with ConTeXt's luatex-plain.fmt that you can suggest?

Never tried that, sorry. Have you searched CTAN? If that leads
nowhere I recommend asking on http://tex.stackexchange.com.

Best,
Philipp


[-- Attachment #1.2: Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-05-15 16:29 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-12 19:48 LuaTeX-plain OpenType Features Select Aíre Funvake
2014-05-12 20:01 ` Hans Hagen
2014-05-12 20:46   ` Aíre Funvake
2014-05-12 20:52     ` Hans Hagen
2014-05-12 20:59       ` Aíre Funvake
2014-05-12 21:12         ` Aíre Funvake
2014-05-13 17:48           ` Aíre Funvake
2014-05-13 17:56             ` Hans Hagen
2014-05-13 18:16               ` Aíre Funvake
2014-05-13 18:57                 ` Hans Hagen
2014-05-13 19:10                   ` Aíre Funvake
2014-05-13 22:16                   ` Philipp Gesang
2014-05-15  7:09                     ` Aíre Funvake
2014-05-15 16:29                       ` Philipp Gesang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).