Problem with simplefonts
Hello! Partly due to the upcoming ConTeXt meeting I updated my ConTeXt, although with the --current option for latest stable. Most of my files compile fine and there don't seem to be any problems. However, the big beast fails right after loading env-fonts-23 (attached) and it seems to be a problem connected to the Simplefonts module. This is what the log says: ----- fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded open source > level 3, order 4, name '../../env-fonts-23.tex' modules > 'simplefonts' is loaded open source > level 4, order 5, name 'C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv' loading > ConTeXt User Module / Simplefonts resolvers > lua > loading file 'C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua' succeeded tex error > tex error on line 802 in file C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv: ! Undefined control sequence \simplefonts@fontfeature ...\normalexpanded {\@NX \definefontfeature [#1#2\s... \syst_helpers_comma_list_step ...\v!mainfont }{#1} \ctxlua {thirddata.simplef... \17>>2 #1,->\syst_helpers_comma_list_step {#1} \syst_helpers_do_process_comma... <argument> \relax regular, italic,slanted,bold,bolditalic,boldslanted,caps, italiccaps,slan \syst_helpers_do_process_comma_list ...m_gobble #1 ,]\relax \global \advance ... \simplefonts@definetextfont ...rocesscommacommand \ifx \currenttypeface \v!s... ... l.802 \setsansfont [Latin Modern Sans] 792 \c!smallcapsfeatures=\v!smallcaps, 793 \c!mode=\v!node, 794 \c!force=\v!yes, 795 \c!check=\v!no, 796 \c!expansion=\v!no, 797 \c!protrusion=\v!no] 798 799 %D Default fonts 800 801 \setmainfont [Latin Modern Roman] 802 >> \setsansfont [Latin Modern Sans] 803 \setmonofont [Latin Modern Mono][\s!features=\s!none] 804 \setmathfont [Latin Modern Math] 805 \sethandwritingfont [Latin Modern Roman] % neither handwritten nor calligraphic are available 806 \setcalligraphicfont[Latin Modern Roman] % for Latin Modern but I need a default font for them 807 808 \!!donesimplefontstrue 809 810 \stopmodule 811 812 \protect \endinput ? ----- My understanding of the font mechanics is flaky (to put it mildly), so I don't know if the problem is in my font definitions or if I've actually found a bug (unlikely, but you never know). What is weird is that the almost similar env-fonts-pr33.tex works without complaints. I'm running standalone ConTeXt on a 64-bit Windows10 machine, if that makes any difference. The ConTeXt version is 2018.08.28 17:21 MKIV beta. I don't need the non-working file right now. But it has to compile by the end of next week or I'll be in trouble... Thanks, Mari
On 8/30/2018 11:41 AM, Mari Voipio wrote:
Hello!
Partly due to the upcoming ConTeXt meeting I updated my ConTeXt, although with the --current option for latest stable.
Most of my files compile fine and there don't seem to be any problems. However, the big beast fails right after loading env-fonts-23 (attached) and it seems to be a problem connected to the Simplefonts module.
This is what the log says:
----- fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded open source > level 3, order 4, name '../../env-fonts-23.tex' modules > 'simplefonts' is loaded open source > level 4, order 5, name 'C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv' loading > ConTeXt User Module / Simplefonts resolvers > lua > loading file 'C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua' succeeded
tex error > tex error on line 802 in file C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv: ! Undefined control sequence
\simplefonts@fontfeature ...\normalexpanded {\@NX \definefontfeature [#1#2\s... \syst_helpers_comma_list_step ...\v!mainfont }{#1} \ctxlua {thirddata.simplef... \17>>2 #1,->\syst_helpers_comma_list_step {#1} \syst_helpers_do_process_comma... <argument> \relax regular, italic,slanted,bold,bolditalic,boldslanted,caps, italiccaps,slan \syst_helpers_do_process_comma_list ...m_gobble #1 ,]\relax \global \advance ... \simplefonts@definetextfont ...rocesscommacommand \ifx \currenttypeface \v!s... ... l.802 \setsansfont [Latin Modern Sans]
792 \c!smallcapsfeatures=\v!smallcaps, 793 \c!mode=\v!node, 794 \c!force=\v!yes, 795 \c!check=\v!no, 796 \c!expansion=\v!no, 797 \c!protrusion=\v!no] 798 799 %D Default fonts 800 801 \setmainfont [Latin Modern Roman] 802 >> \setsansfont [Latin Modern Sans] 803 \setmonofont [Latin Modern Mono][\s!features=\s!none] 804 \setmathfont [Latin Modern Math] 805 \sethandwritingfont [Latin Modern Roman] % neither handwritten nor calligraphic are available 806 \setcalligraphicfont[Latin Modern Roman] % for Latin Modern but I need a default font for them 807 808 \!!donesimplefontstrue 809 810 \stopmodule 811 812 \protect \endinput
? -----
My understanding of the font mechanics is flaky (to put it mildly), so I don't know if the problem is in my font definitions or if I've actually found a bug (unlikely, but you never know). What is weird is that the almost similar env-fonts-pr33.tex works without complaints.
I'm running standalone ConTeXt on a 64-bit Windows10 machine, if that makes any difference. The ConTeXt version is 2018.08.28 17:21 MKIV beta.
I don't need the non-working file right now. But it has to compile by the end of next week or I'll be in trouble... don't use t-simplefonts, use \selectfont instead (its replacement)
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen schrieb am 30.08.18 um 13:39:
On 8/30/2018 11:41 AM, Mari Voipio wrote:
Hello!
Partly due to the upcoming ConTeXt meeting I updated my ConTeXt, although with the --current option for latest stable.
Most of my files compile fine and there don't seem to be any problems. However, the big beast fails right after loading env-fonts-23 (attached) and it seems to be a problem connected to the Simplefonts module.
This is what the log says:
----- fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded open source > level 3, order 4, name '../../env-fonts-23.tex' modules > 'simplefonts' is loaded open source > level 4, order 5, name 'C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv'
loading > ConTeXt User Module / Simplefonts resolvers > lua > loading file 'C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.lua'
succeeded
tex error > tex error on line 802 in file C:/context/tex/texmf-modules/tex/context/third/simplefonts/t-simplefonts.mkiv:
! Undefined control sequence
\simplefonts@fontfeature ...\normalexpanded {\@NX \definefontfeature [#1#2\s... \syst_helpers_comma_list_step ...\v!mainfont }{#1} \ctxlua {thirddata.simplef... \17>>2 #1,->\syst_helpers_comma_list_step {#1} \syst_helpers_do_process_comma... <argument> \relax regular, italic,slanted,bold,bolditalic,boldslanted,caps, italiccaps,slan \syst_helpers_do_process_comma_list ...m_gobble #1 ,]\relax \global \advance ... \simplefonts@definetextfont ...rocesscommacommand \ifx \currenttypeface \v!s... ... l.802 \setsansfont [Latin Modern Sans]
792 \c!smallcapsfeatures=\v!smallcaps, 793 \c!mode=\v!node, 794 \c!force=\v!yes, 795 \c!check=\v!no, 796 \c!expansion=\v!no, 797 \c!protrusion=\v!no] 798 799 %D Default fonts 800 801 \setmainfont [Latin Modern Roman] 802 >> \setsansfont [Latin Modern Sans] 803 \setmonofont [Latin Modern Mono][\s!features=\s!none] 804 \setmathfont [Latin Modern Math] 805 \sethandwritingfont [Latin Modern Roman] % neither handwritten nor calligraphic are available 806 \setcalligraphicfont[Latin Modern Roman] % for Latin Modern but I need a default font for them 807 808 \!!donesimplefontstrue 809 810 \stopmodule 811 812 \protect \endinput
? -----
My understanding of the font mechanics is flaky (to put it mildly), so I don't know if the problem is in my font definitions or if I've actually found a bug (unlikely, but you never know). What is weird is that the almost similar env-fonts-pr33.tex works without complaints.
I'm running standalone ConTeXt on a 64-bit Windows10 machine, if that makes any difference. The ConTeXt version is 2018.08.28 17:21 MKIV beta.
I don't need the non-working file right now. But it has to compile by the end of next week or I'll be in trouble... don't use t-simplefonts, use \selectfont instead (its replacement)
\definefontfamily [Manuals] [rm] [Cambria] \definefontfamily [Manuals] [ss] [Calibri] \definefontfamily [Manuals] [tt] [Consolas] \definefontfamily [Manuals] [mm] [Cambria Math] \setupbodyfont[Manuals,10pt] \starttext Cambria {\ss Calibri} {\tt Consolas} \unit{10 meter per second} \stoptext Wolfgang
On Thu, Aug 30, 2018 at 2:40 PM Hans Hagen
don't use t-simplefonts, use \selectfont instead (its replacement)
I can't find \selectfont on the wiki, can I get an example on the usage? My attempts haven't been successful, there's probably something I don't understand. Mari
Take a look at my answer where I use the \definefontfamily command (which uses selectfont as internal name). Wolfgang Mari Voipio schrieb am 03.09.18 um 09:48:
On Thu, Aug 30, 2018 at 2:40 PM Hans Hagen
wrote: don't use t-simplefonts, use \selectfont instead (its replacement) I can't find \selectfont on the wiki, can I get an example on the usage? My attempts haven't been successful, there's probably something I don't understand.
Mari ___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (3)
-
Hans Hagen
-
Mari Voipio
-
Wolfgang Schuster