ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with simplefonts
@ 2018-08-30  9:41 Mari Voipio
  2018-08-30 11:39 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Mari Voipio @ 2018-08-30  9:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 3186 bytes --]

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

[-- Attachment #2: env-fonts-23.tex --]
[-- Type: application/octet-stream, Size: 546 bytes --]

\startenvironment env-fonts-23
\project proj-dd23

\usemodule[simplefonts] % to get access to Calibri & Cambria, win ttf fonts
\usemodule[units] % to get \Celsius and \Fahrenheit to work

\starttypescript[Manuals]
    \definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
    \definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
     \definetypeface[Manuals] [tt] [mono] [courier] [default] [rscale=0.85]
\stoptypescript

\usetypescript[Manuals]
\setupbodyfont[Manuals,10pt]


\stopenvironment

[-- Attachment #3: env-fonts-pr33.tex --]
[-- Type: application/octet-stream, Size: 796 bytes --]

\startenvironment env-fonts-pr33
\project proj-pr33
\project proj-pr43

%% This kind of works, but gives Calibri Light
% \usemodule[simplefonts] % to get access to Calibri & Cambria, win ttf fonts
% \usemodule[units]       % to get access to degreesign etc.

% \setmainfont[Calibri][scale=0.9]
% \setmonofont[Courier New][scale=0.8]

% \setupbodyfont[10pt]


%% This works and gives Calibri Regular, which is what we want

\starttypescript[Manuals]
    \definetypeface[Manuals] [rm] [serif] [cambria] [default] [rscale=0.95]
    \definetypeface[Manuals] [ss] [sans] [calibri] [default] [rscale=0.9]
     \definetypeface[Manuals] [tt] [mono] [courier] [default] [rscale=0.85]
\stoptypescript

\usetypescript[Manuals]
\setupbodyfont[Manuals,10pt,sans]


\stopenvironment

[-- Attachment #4: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-09-03 16:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-30  9:41 Problem with simplefonts Mari Voipio
2018-08-30 11:39 ` Hans Hagen
2018-08-30 14:59   ` Wolfgang Schuster
2018-09-03  7:48   ` Mari Voipio
2018-09-03 16:46     ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).