Re: [NTG-context] font feature
> On 8. Jul 2021, at 23:33, Hans Hagen wrote: > > you forgot the 'default' so you basically force basemode which is does > permanent features .. add/subtract works only in node mode > > \definefontfeature > [f:onum] > [onum=yes,pnum=yes] > > \definefontfamily [test] [serif] [AntykwaTorunska] [features={default,f:onum}] > \definefontfamily [test] [sans] [Myriad Pro] > \definefontfamily [test] [mono] [DejaVu Sans Mono] > \definefontfamily [test] [math] [Xits Math] > > \setupbodyfont[test,12pt] > > \starttext >test 1 2 3 test 1/2 \subtractfeature[f:onum] test 1 2 3 test 1/2 > \stoptext Thank you, Hans, this works! I’m looking for a place to add this information to the “featuresets” page on the wiki, will do this soon! All best Thomas ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] font feature
On 7/8/2021 9:46 AM, Thomas A. Schmitz wrote: Hi all, is it possible to subtract a featureset that has been applied to a fontfamily? MWE: \definefontfeature [f:frac] [frac=yes,onum=no,pnum=no] \definefontfeature [f:onum] [onum=yes,pnum=yes] \definefontfamily [test] [serif] [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, Beethoven wählt einen Dreiertakt, Mozarts Romanze ist ein 3/8-Takt, Beethoven wählt einen 2/4, Mozarts Rondo ist eine Gavotte im 2/2-Takt, Beethoven schreibt ein Jagdrondo im 6/8-Takt. \stoptext If I comment out the part [features=f:onum], I get the fractions that I'm looking for, but it seems that I can't get the same effect with \subtractfeature and \addfeature. I'm confused... you forgot the 'default' so you basically force basemode which is does permanent features .. add/subtract works only in node mode \definefontfeature [f:onum] [onum=yes,pnum=yes] \definefontfamily [test] [serif] [AntykwaTorunska] [features={default,f:onum}] \definefontfamily [test] [sans] [Myriad Pro] \definefontfamily [test] [mono] [DejaVu Sans Mono] \definefontfamily [test] [math] [Xits Math] \setupbodyfont[test,12pt] \starttext test 1 2 3 test 1/2 \subtractfeature[f:onum] test 1 2 3 test 1/2 \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] font feature
Hi all, is it possible to subtract a featureset that has been applied to a fontfamily? MWE: \definefontfeature [f:frac] [frac=yes,onum=no,pnum=no] \definefontfeature [f:onum] [onum=yes,pnum=yes] \definefontfamily [test] [serif] [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, Beethoven wählt einen Dreiertakt, Mozarts Romanze ist ein 3/8-Takt, Beethoven wählt einen 2/4, Mozarts Rondo ist eine Gavotte im 2/2-Takt, Beethoven schreibt ein Jagdrondo im 6/8-Takt. \stoptext If I comment out the part [features=f:onum], I get the fractions that I'm looking for, but it seems that I can't get the same effect with \subtractfeature and \addfeature. I'm confused... Thanks and all best Thomas ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Font feature not applied in some cases
I could reproduce this occasionally occuring unexpected output in following MWE.Seems linked to calt=yes feature being set and ordn=yes being set and letter ‘f’ (some other letters such as ‘b’ work fine). Thanks as always for help. \definefontfeature[noteref][mode=node, ordn=yes] \definefontfeature[default][default][calt=yes] % works if calt is not set\definefontfamily[mainfont][serif][EBGaramond]\setupbodyfont[mainfont, 9pt] \define[1]\Sup{{\feature[+][noteref]#1}} \starttext \dontleavehmode e \Sup{f}*word % f is not superscript if calt is set \dontleavehmode e \Sup{b}*word \stoptext ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] font feature is not working now.
Hi, Hans: This is a serious bug, and actually this is why chinese is not working in LiYanrui's mail. Yue Wang a.pdf Description: Adobe PDF document a.tex Description: TeX document ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] font feature is not working now.
On Fri, Nov 28, 2008 at 9:03 PM, Khaled Hosny [EMAIL PROTECTED] wrote: On Fri, Nov 28, 2008 at 11:54:50AM +, Yue Wang wrote: Hi, Hans: This is a serious bug, and actually this is why chinese is not working in LiYanrui's mail. Font features don't work in typescripts, but still working for \font\foo=foo*fea Yes, that's what the demo file shows. -- Khaled Hosny Arabic localizer and member of Arabeyes.org team -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkkv7DMACgkQRoqITGOuyPKIgQCeLIH8oImeEvFvYxwKC7eA76g6 I24Anj9MB/9ezr8qktLryyfkAf9Rpt1x =/yQi -END 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___