[NTG-context] Re: Inconsistent behavior: \addfontfeature and CLD local function

2023-08-20 Thread Hamid,Idris
: Dear gang, For \addfeature and the like, a virtual font feature defined in terms of a CLD local function behaves differently from other font features. MWE: == \startluacode local function squeeze(tfmdata) for k, v in next, tfmdata.characters do v.width = 1.75 * (v.height or 0) v.depth

[NTG-context] Re: Inconsistent behavior: \addfontfeature and CLD local function

2023-08-20 Thread Hans Hagen
On 8/20/2023 5:33 PM, Hamid,Idris wrote: Dear gang, For \addfeature and the like, a virtual font feature defined in terms of a CLD local function behaves differently from other font features. MWE: == \startluacode local function squeeze(tfmdata) for k, v in next

[NTG-context] Inconsistent behavior: \addfontfeature and CLD local function

2023-08-20 Thread Hamid,Idris
Dear gang, For \addfeature and the like, a virtual font feature defined in terms of a CLD local function behaves differently from other font features. MWE: == \startluacode local function squeeze(tfmdata) for k, v in next, tfmdata.characters do v.width = 1.75 * (v.height

Re: [NTG-context] move glyph vertically

2022-12-22 Thread Hans Hagen via ntg-context
ingle", data = { [ '¿' ] = { 0, 400 }, [ '¡' ] = { 0, 400 }, } } \stopluacode \definefontfeature[ktest][gpos_test=yes] \starttext \startTEXpage[offset=1em] \ruledhbox{¿? xx

Re: [NTG-context] STIX2 font issues with freshly installed LMTX

2022-01-05 Thread Heinrich Paeßens via ntg-context
x27;/Users/hp/Library/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/stixtwotext-regular.tmd' >>> stripped >>> fonts > otf loading > loading, optimizing, packing and caching >>> time 0.002 >>&

[NTG-context] STIX2 font issues with freshly installed FMTX

2022-01-03 Thread Heinrich Paeßens via ntg-context
> lua error on line 1 in file ./Untitled.tex: registered function call [1129]: ...-64/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:325: attempt to index a nil value (upvalue 'descriptions') stack traceback: ...-64/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:3

Re: [NTG-context] font feature

2021-07-08 Thread Hans Hagen
] [AntykwaTorunska] [features=f:onum] \definefontfamily [test] [sans]  [Myriad Pro] \definefontfamily [test] [mono]  [DejaVu Sans Mono] \definefontfamily [test] [math]  [Xits Math] \setupbodyfont[test,12pt] \starttext Mozarts erster Satz ist ein {\subtractfeature[f:test]\addfeature[f:frac]4/4}-Takt

[NTG-context] font feature

2021-07-08 Thread Thomas A. Schmitz
[test] [sans] [Myriad Pro] \definefontfamily [test] [mono] [DejaVu Sans Mono] \definefontfamily [test] [math] [Xits Math] \setupbodyfont[test,12pt] \starttext Mozarts erster Satz ist ein {\subtractfeature[f:test]\addfeature[f:frac]4/4}-Takt, Beethoven wählt einen Dreiertakt, Mozarts Romanze

Re: [NTG-context] oldstyle numerals in STIX Two Math

2020-10-21 Thread Alan Bowen
gt; > \definefontfeature[f:oldstyle][onum=yes] > > > > \setupbodyfont[mainface, 18pt] > > \addfeature{f:oldstyle} > > > > \starttext > > 123456789 > > \blank[big] > > $\sqrt{2} + 1234$ > > \stoptext > > > > Any pointers will

Re: [NTG-context] oldstyle numerals in STIX Two Math

2020-10-21 Thread Henning Hraban Ramm
xt][] %onum=yes does not seem to > work > \definefontfamily[mainface][mm][STIX Two Math][] > \definefontfeature[f:oldstyle][onum=yes] > > \setupbodyfont[mainface, 18pt] > \addfeature{f:oldstyle} > > \starttext > 123456789 > \blank[big] > $\sqrt{2} + 1234$ > \sto

[NTG-context] oldstyle numerals in STIX Two Math

2020-10-21 Thread Alan Bowen
][] \definefontfeature[f:oldstyle][onum=yes] \setupbodyfont[mainface, 18pt] \addfeature{f:oldstyle} \starttext 123456789 \blank[big] $\sqrt{2} + 1234$ \stoptext Any pointers will be greatly appreciated. Alan ___ If your

Re: [NTG-context] issue with optical bounds (OpenType)

2018-12-09 Thread Hans Hagen
On 12/9/2018 1:34 PM, Pablo Rodriguez wrote: On 12/7/18 11:25 PM, Hans Hagen wrote: On 12/7/2018 9:14 PM, Pablo Rodriguez wrote: [...] The issue is that, although opbd values are used, that results from opbd and from single placement in addfeature are different (although LuaTeX reports the

Re: [NTG-context] issue with optical bounds (OpenType)

2018-12-09 Thread Pablo Rodriguez
On 12/7/18 11:25 PM, Hans Hagen wrote: > On 12/7/2018 9:14 PM, Pablo Rodriguez wrote: >> [...] >> The issue is that, although opbd values are used, that results from opbd >> and from single placement in addfeature are different (although LuaTeX >> reports the same val

Re: [NTG-context] issue with optical bounds (OpenType)

2018-12-07 Thread Hans Hagen
font myself and the Greek script is required and selected (with the Latin script, that OT opbd property doesn’t work at all). The issue is that, although opbd values are used, that results from opbd and from single placement in addfeature are different (although LuaTeX reports the same values for

Re: [NTG-context] issue with optical bounds (OpenType)

2018-12-07 Thread Pablo Rodriguez
Greek script is required and selected (with the Latin script, that OT opbd property doesn’t work at all). The issue is that, although opbd values are used, that results from opbd and from single placement in addfeature are different (although LuaTeX reports the same values for lfbd). Just in case i

Re: [NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Hans Hagen
/mkiv/l-lpeg.lua:290: in function 'splitter' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:159: in function 'addfeature' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:730: in function 'enhancer' ...ext/tex/texmf-context/tex/context/base/mkiv/font

[NTG-context] Problem loading font KFGQPC Uthman Taha Naskh font

2016-08-21 Thread Mohammad Hossein Bateni
mf-context/tex/context/base/mkiv/font-otc.lua:159: in function 'addfeature' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:730: in function 'enhancer' ...ext/tex/texmf-context/tex/context/base/mkiv/font-con.lua:1269: in function 'enhance' ...ext/tex/texmf-co

Re: [NTG-context] Error in loading font Samim

2016-08-07 Thread Mohammad Hossein Bateni
in function '__div' > ...ntext/tex/texmf-context/tex/context/base/mkiv/l-lpeg.lua:290: in > function 'splitter' > ...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:159: in > function 'addfeature' > ...ext/tex/texmf-context/tex/context/base/mki

[NTG-context] Error in loading font Samim

2016-08-07 Thread Mohammad Hossein Bateni
x27; ...ntext/tex/texmf-context/tex/context/base/mkiv/l-lpeg.lua:290: in function 'splitter' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:159: in function 'addfeature' ...ext/tex/texmf-context/tex/context/base/mkiv/font-otc.lua:730: in function 'enhancer'

Re: [NTG-context] Problems with ttc-fonts

2016-05-01 Thread Hans Hagen
On 4/29/2016 9:51 AM, Ulrike Fischer wrote: I was playing with the addfeature handler mentioned here https://mailman.ntg.nl/pipermail/ntg-context/2016/083952.html and run into a problem with ttc-fonts: \starttext \directlua{ fonts.handlers.otf.addfeature { name = "

Re: [NTG-context] Problems with ttc-fonts

2016-04-29 Thread Hans Hagen
On 4/29/2016 9:51 AM, Ulrike Fischer wrote: I was playing with the addfeature handler mentioned here https://mailman.ntg.nl/pipermail/ntg-context/2016/083952.html and run into a problem with ttc-fonts: \starttext \directlua{ fonts.handlers.otf.addfeature { name = "

[NTG-context] Problems with ttc-fonts

2016-04-29 Thread Ulrike Fischer
I was playing with the addfeature handler mentioned here https://mailman.ntg.nl/pipermail/ntg-context/2016/083952.html and run into a problem with ttc-fonts: \starttext \directlua{ fonts.handlers.otf.addfeature { name = "oneb", { type = &qu

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
Hello Wolfgang, indeed if one uses pagella it is true what you say. If I use Seravek, which has oldstuyle figures also, then it does not work in the same way. I tested with \addfeature[oldstyle] which is defined as \definefontfeature[oldstyle][default][sript=latn,onum=yes] With this feature

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Wolfgang Schuster
s,lnum=no,pnum=no,tnum=yes] \definefontfeature [lnum+pnum] [onum=no,lnum=yes,pnum=yes,tnum=no] \definefontfeature [lnum+tnum] [onum=no,lnum=yes,pnum=no,tnum=yes] \setupbodyfont[pagella] \starttext \starttabulate[|f{\addfeature{onum+pnum}}r|f{\addfeature{onum+tnum}}r|f{\addfeature{lnum+pnu

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
able to enable the font feature tnum for >>> the page-numbers with “pagecommand=“. >>> >>> I have >>> >>> \setuphead >>> [section] >>> [aftersection=\page, textstyle=\bfd, numberstyle=\bfd, align=middle, >>> after={\godown[-1\lineheigh

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
ct then one should be able to enable the font feature tnum for >> the page-numbers with “pagecommand=“. >> >> I have >> >> \setuphead >> [section] >> [aftersection=\page, textstyle=\bfd, numberstyle=\bfd, align=middle, >> after={\godown[-1\lineheight]}

Re: [NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Wolfgang Schuster
e=\bfd, align=middle, after={\godown[-1\lineheight]}, number=no] \setuplist[section][pagecommand={\addfeature[tnum]#1\subtractfeature[tnum]}] However if I do this then I get the pagenumber prefixed with ‘section’ e.g. bbb bar buch bühne section3 What am I doing in the wrong way? \setuplist[c

[NTG-context] adding font feature tnum in the TOC

2016-03-29 Thread Willi Egger
]}, number=no] \setuplist[section][pagecommand={\addfeature[tnum]#1\subtractfeature[tnum]}] However if I do this then I get the pagenumber prefixed with ‘section’ e.g. bbb bar buch bühne section3 What am I doing in the wrong way? Kind regards Willi

Re: [NTG-context] em-/en-dashes and newotf

2015-07-14 Thread Rik Kabel
that this sample doesn’t work with latest beta either: \usemodule[newotf] \definefontfeature[noliga][liga=no] \starttext \startTEXpage[offset=1em] fiflff no--liga: \addfeature[noliga]fiflff --- em--dash \stopTEXpage \stoptext I may be wrong, but I

Re: [NTG-context] em-/en-dashes and newotf

2015-07-12 Thread Hans Hagen
beta either: \usemodule[newotf] \definefontfeature[noliga][liga=no] \starttext \startTEXpage[offset=1em] fiflff no--liga: \addfeature[noliga]fiflff --- em--dash \stopTEXpage \stoptext I may be wrong, but I think that the non-deactivated OpenType

Re: [NTG-context] em-/en-dashes and newotf

2015-07-12 Thread Rik Kabel
] \definefontfeature[noliga][liga=no] \starttext \startTEXpage[offset=1em] fiflff no--liga: \addfeature[noliga]fiflff --- em--dash \stopTEXpage \stoptext I may be wrong, but I think that the non-deactivated OpenType feature is related to the non-activated em

Re: [NTG-context] em-/en-dashes and newotf

2015-07-12 Thread Otared Kavian
EXpage[offset=1em]    fiflff no--liga:    \addfeature[noliga]fiflff    --- em--dash    \stopTEXpage    \stoptextI may be wrong, but I think that the non-deactivated OpenType feature isrelated to the non-activated em- and en-dashes.To the list members: could you test the sample above and tell em- anden-

Re: [NTG-context] em-/en-dashes and newotf

2015-07-12 Thread Axel Kielhorn
le doesn’t work with latest beta either: > >\usemodule[newotf] > >\definefontfeature[noliga][liga=no] > >\starttext >\startTEXpage[offset=1em] >fiflff no--liga: >\addfeature[noliga]fiflff > >--- em--dash >\stopTEXpage >

Re: [NTG-context] em-/en-dashes and newotf

2015-07-12 Thread Pablo Rodriguez
][liga=no] \starttext \startTEXpage[offset=1em] fiflff no--liga: \addfeature[noliga]fiflff --- em--dash \stopTEXpage \stoptext I may be wrong, but I think that the non-deactivated OpenType feature is related to the non-activated em- and en-dashes. To the list members:

[NTG-context] OT features and newotf

2015-07-11 Thread Pablo Rodriguez
Dear list, I’m afraid that features don’t work with newotf: \usemodule[newotf] \definefontfeature[noliga][liga=no] \starttext \startTEXpage[offset=1em] fiflff \addfeature[noliga]fiflff \stopTEXpage \stoptext Is this a bug or am I missing something? Many

Re: [NTG-context] \os

2014-08-03 Thread Joshua Krämer
fontfamily [latinmodern] [serif] [Latin Modern Roman] \setupbodyfont[latinmodern, 12pt] \definefontfeature[oldstyle][lnum=no, onum=yes] \starttext Regular figures: 0123456789 {\addfeature[oldstyle] Local oldstyle figures: 0123456789} \stoptext This way, lining figures are enabled by default,

Re: [NTG-context] Selectfont: extend and slant features

2014-02-26 Thread Wolfgang Schuster
> \definefontfeature [mainfeature] [default] [onum=yes] > \definefontfeature [testfeature] [onum=no, extend=2, slant=0.25] > > \definefontfamily [mainfamily] [serif] [Latin Modern Roman] > [features={mainfeature}] > > \setupbodyfont [mainfamily, 50pt] > > \starttext &g

[NTG-context] Selectfont: extend and slant features

2014-02-26 Thread Joshua Krämer
] [onum=no, extend=2, slant=0.25] \definefontfamily [mainfamily] [serif] [Latin Modern Roman] [features={mainfeature}] \setupbodyfont [mainfamily, 50pt] \starttext 1236 \addfeature [testfeature] 1236 \stoptext Kind regards, Joshua Krämer

Re: [NTG-context] wrong \sc i with Palatino Linotype

2014-02-17 Thread Jan Tosovsky
gt; \setupbodyfont[mainface] > \starttext > {\addfeature[capstosc] AEIOU} > > \sc aeiou > \stoptext > > All vowels are fine, but the i is a dotted small cap i. The regular > small cap i is defined as i.sc (and the dotted small cap i is defined > as i.sc too). But FontForge applies

[NTG-context] wrong \sc i with Palatino Linotype

2014-02-17 Thread Pablo Rodriguez
Dear list, I have noticed that ConTeXt (beta from 2014.02.14 17:07) has a problem with Palatino Linotype. Here the sample: \definefontfeature[capstosc][c2sc=yes] \definefontfamily[mainface][serif][Palatino Linotype] \setupbodyfont[mainface] \starttext {\addfeature[capstosc] AEIOU} \sc aeiou

Re: [NTG-context] tnum and aligncharacter=yes

2013-10-21 Thread Hans Hagen
On 10/21/2013 8:04 AM, Wolfgang Schuster wrote: Am 21.10.2013 um 00:55 schrieb Hans Hagen : On 10/21/2013 7:44 AM, Peter Münster wrote: Hi, aligncharacter=yes does not work with \addfeature[with-tnum]: --8<---cut here---start->8--- \definefontf

Re: [NTG-context] tnum and aligncharacter=yes

2013-10-21 Thread Hans Hagen
On 10/21/2013 7:44 AM, Peter Münster wrote: Hi, aligncharacter=yes does not work with \addfeature[with-tnum]: --8<---cut here---start->8--- \definefontfeature[with-tnum][default][tnum=yes] \definefontfamily[mainface][sans][Alwyn New] \setupbodyfont[ma

[NTG-context] tnum and aligncharacter=yes

2013-10-21 Thread Peter Münster
Hi, aligncharacter=yes does not work with \addfeature[with-tnum]: --8<---cut here---start->8--- \definefontfeature[with-tnum][default][tnum=yes] \definefontfamily[mainface][sans][Alwyn New] \setupbodyfont[mainface] \setupTABLE[alignmentcha

Re: [NTG-context] tnum and aligncharacter=yes

2013-10-21 Thread Wolfgang Schuster
Am 21.10.2013 um 00:55 schrieb Hans Hagen : > On 10/21/2013 7:44 AM, Peter Münster wrote: >> Hi, >> >> aligncharacter=yes does not work with \addfeature[with-tnum]: >> >> --8<---cut here---start->8--- >> \d

Re: [NTG-context] Bold Small Caps

2013-06-25 Thread Sietse Brouwer
gt; confirms your syntax. What am I missing? The version you are using? The `\feature[+][...]` syntax has been around only since about March 2013; before that you had to use `\addfeature[...]`. Does that explain the error you

Re: [NTG-context] LuaTeX has troubles with contextual kern

2013-04-24 Thread Georg Duffner
m[ebg][file:EBGaramond12-Regular.otf] \definefontfeature[ss20][ss20=yes] \definefontfeature[iota1][cv81=1] \definefontfeature[iota2][cv81=2] \definefontfeature[altcirc][cv80=1] \define\test{Tì αᾟα\par} \starttext \definedfont[ebg*default at 12pt]\test \addfeature{ss20}\test \addfeature{iota1}

Re: [NTG-context] LuaTeX has troubles with contextual kern

2013-04-24 Thread Hans Hagen
[altcirc][cv80=1] \define\test{Tì αᾟα\par} \starttext \definedfont[ebg*default at 12pt]\test \addfeature{ss20}\test \addfeature{iota1}\test \addfeature{iota2}\test \addfeature{altcirc}\test \stoptext The font is at http://www.georgduffner.at/ebgaramond/fonts/EBGaramond12-Regular.otf The

[NTG-context] LuaTeX has troubles with contextual kern

2013-04-24 Thread Georg Duffner
at 12pt]\test \addfeature{ss20}\test \addfeature{iota1}\test \addfeature{iota2}\test \addfeature{altcirc}\test \stoptext The font is at http://www.georgduffner.at/ebgaramond/fonts/EBGaramond12-Regular.otf The corresponding lookups in the kern.fea roughly contain pos T' 145 i.do

Re: [NTG-context] wiki page for \feature

2013-03-22 Thread Sietse Brouwer
=no,dlig=no] > > \definefontfeature[f:oldstylewmacron] [ss04=no,onum=yes] > \definefontfeature[f:newstylesmallcaps] [smcp=yes,onum=no] > > \startTEXpage[offset=10pt] > > \define\SAMPLE{123 Idrīs ?` !` VA fi} > > \SAMPLE\blank > > \feature[+][f:oldstyle]

[NTG-context] wiki page for \feature

2013-03-21 Thread Idris Samawi Hamid ادريس سماوي حامد
ature[f:newstylesmallcaps] [smcp=yes,onum=no] \startTEXpage[offset=10pt] \define\SAMPLE{123 Idrīs ?` !` VA fi} \SAMPLE\blank \feature[+][f:oldstyle] \SAMPLE \blank \feature[more][f:thinimacron] \SAMPLE \blank \addfeature[f:upsidedown] \SAMPLE \blank \fe

[NTG-context] \feature

2013-03-17 Thread Hans Hagen
Hi, After some experimenting, I settled on the next interface for dynamic features: The is also a generic command \type {\feature} that takes two arguments. Below we show all calls, with long and short variants: \starttyping \addfeature[f:mine] \feature [more][f:mine] \feature

Re: [NTG-context] new trickery

2013-03-15 Thread Hans Hagen
On 3/15/2013 7:11 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: So I hope I have this right: \addfeature adds a set of features {,,...} to the currently defined/enabled stack of OT features \subtractfeature subtracts a set of features from the currently defined/enabled stack These two

Re: [NTG-context] new trickery

2013-03-15 Thread Hans Hagen
feature{add=bar,remove=baz} I'd like to avoid parsing as much as possible here as these are state changers. So, I made: \addfeature [f:mine] \feature[more][f:mine] \feature[+] [f:mine] \subtractfeature[f:mine] \feature[less][f:mine] \feature[-] [f:mine] \replacefeature [f:mi

Re: [NTG-context] new trickery

2013-03-15 Thread Hans Hagen
On 3/15/2013 7:11 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: On Fri, 15 Mar 2013 05:07:02 -0600, Hans Hagen wrote: \start fijn fietsen 123 \type{[+os]}\addfeature{f:oldstyle} fijn fietsen 123 \type{[+sc]}\addfeature{f:smallcaps} fijn fietsen

Re: [NTG-context] new trickery

2013-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد
On Fri, 15 Mar 2013 05:07:02 -0600, Hans Hagen wrote: \start fijn fietsen 123 \type{[+os]}\addfeature{f:oldstyle} fijn fietsen 123 \type{[+sc]}\addfeature{f:smallcaps} fijn fietsen 123 \type{[=os]}\replacefeature{f:oldstyle} fijn

Re: [NTG-context] new trickery

2013-03-15 Thread Hans Hagen
{f:nocaps} fijn fietsen 123 \stop \par \start fijn fietsen 123 \type{[+os]}\addfeature{f:oldstyle} fijn fietsen 123 \type{[+sc]}\addfeature{f:smallcaps} fijn fietsen 123 \type{[-os]}\subtractfeature{f:oldstyle} fijn fietsen 123