ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mari Voipio <mari.voipio@iki.fi>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Problem with simplefonts
Date: Thu, 30 Aug 2018 12:41:01 +0300	[thread overview]
Message-ID: <CAGbDsP3VByjVFDrLF1BMLUe7SohRCka5oVR7dEWGSv3XUcN1_g@mail.gmail.com> (raw)

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

             reply	other threads:[~2018-08-30  9:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-30  9:41 Mari Voipio [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAGbDsP3VByjVFDrLF1BMLUe7SohRCka5oVR7dEWGSv3XUcN1_g@mail.gmail.com \
    --to=mari.voipio@iki.fi \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).