Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-15 Thread Aíre Funvake
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 example8
 \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=XX` 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

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-15 Thread Philipp Gesang
···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



pgpH4kKkkGkRF.pgp
Description: PGP signature
___
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
___

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-13 Thread Aíre Funvake
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 example8
 \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=XX` 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
___

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-13 Thread Hans Hagen

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 example8
\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=XX` 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
___

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-13 Thread 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 example8
\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=XX` 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
___

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-13 Thread Aíre Funvake
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
 example8
 \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=XX` 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 / 

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-13 Thread Philipp Gesang
···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 example8
  \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=XX` 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



pgpSOsd9Oew8I.pgp
Description: PGP signature
___
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

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-12 Thread Aíre Funvake
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 example8
 \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
___

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-12 Thread Hans Hagen

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 example8
\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
___

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-12 Thread Aíre Funvake
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 example8
 \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
___

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-12 Thread Aíre Funvake
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 example8
 \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
___