[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
data = { [ '¿' ] = { 0, 400 }, [ '¡' ] = { 0, 400 }, } } \stopluacode \definefontfeature[ktest][gpos_test=yes] \starttext \startTEXpage[offset=1em] \ruledhbox{¿? xx ¡!} \addfeature{ktest} \rule

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

2022-01-05 Thread Heinrich Paeßens via ntg-context
bfe781ce0dde776fb1556f32e/fonts/otl/stixtwotext-regular.tmd' >>> stripped >>> fonts > otf loading > loading, optimizing, packing and caching >>> time 0.002 >>> lua error > lua error on line 1 in file ./Untitled.tex: >>> >>

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

2022-01-03 Thread Heinrich Paeßens via ntg-context
.-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:325: in local 'prepare_ligature' ...-64/tex/texmf-context/tex/context/base/mkiv/font-otc.lua

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
o Text][] %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

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

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

2018-12-07 Thread Pablo Rodriguez
he 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
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-con.lua:1269: in function 'enhance' ...ext/tex/texmf-c

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

2016-08-21 Thread Mohammad Hossein Bateni
v/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-context/tex/context/base/mkiv/font-con.lua:1291: in function 'apply

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

2016-08-07 Thread Mohammad Hossein Bateni
> [C]: 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/mkiv/font-otc.lua:

[NTG-context] Error in loading font Samim

2016-08-07 Thread Mohammad Hossein Bateni
ontext/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' ...ext/tex/texmf-context/tex/context/base/mkiv/font-c

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
>>> If I am correct 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

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

2016-03-29 Thread Willi Egger
>> >> If I am correct 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, >

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 Pablo Rodriguez
=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: could you test

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

2015-07-12 Thread Axel Kielhorn
: \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 feature is related

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 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 Otared Kavian
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-dashes work and if no-liga disables

[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
] \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, and you can change to oldstyle figures locally. if you wna

[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] 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 1236 \addfeature [testfeature] 1236

[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] wrong \sc i with Palatino Linotype

2014-02-17 Thread Jan Tosovsky
{\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 both c2sc and smcp substitutions fine. It seems to be a regression

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

2013-10-21 Thread Wolfgang Schuster
Am 21.10.2013 um 00:55 schrieb Hans Hagen pra...@wxs.nl: 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

[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[alignmentcharacter

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[mainface

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 pra...@wxs.nl: 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

Re: [NTG-context] Bold Small Caps

2013-06-25 Thread Sietse Brouwer
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 getting? Cheers, Sietse

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

2013-04-25 Thread Georg Duffner
][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}\test

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

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

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

2013-03-22 Thread Sietse Brouwer
] \SAMPLE \blank \feature[more][f:thinimacron] \SAMPLE \blank \addfeature[f:upsidedown] \SAMPLE \blank \feature[+][f:smallcaps]\SAMPLE \blank \addfeature[f:wideimacron] \SAMPLE \blank \feature[-][f:upsidedown] \SAMPLE \blank

[NTG-context] wiki page for \feature

2013-03-21 Thread Idris Samawi Hamid ادريس سماوي حامد
[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 \feature

[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
{[+nc]}\feature{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

Re: [NTG-context] new trickery

2013-03-15 Thread Idris Samawi Hamid ادريس سماوي حامد
On Fri, 15 Mar 2013 05:07:02 -0600, Hans Hagen pra...@wxs.nl 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

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 pra...@wxs.nl wrote: \start fijn fietsen 123 \type{[+os]}\addfeature{f:oldstyle} fijn fietsen 123 \type{[+sc]}\addfeature{f:smallcaps

Re: [NTG-context] new trickery

2013-03-15 Thread Hans Hagen
also allow, e.g., \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

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 {feature1,feature2,...featureN} to the currently defined/enabled stack of OT features \subtractfeature subtracts a set of features from the currently defined