On 10/22/2026 2:58 AM, Jim Diamond wrote:
On Wed, Oct 21, 2026 at 09:25 (+0200), Hans Hagen via ntg-context wrote:

On 10/21/2026 1:43 AM, Jim Diamond via ntg-context wrote:
Hi,

I see that the font file attached to my first attempt at this made the
email too big, and I guess it is in moderation.  So to keep the ball
rolling, here is the attachment-free attempt.

Anyone wanting to try the test for themselves can d/l the font file from
https://download.gnu.org.ua/release/newcm/newcm-8.1.1.txz

Thanks.  (See my new question below.)

\usetypescriptfile[newcomputermodern]

depends on the font but it loads the definitions
\setupbodyfont[newcomputermodern]

refers to the definitions, there can be verious ones defined in the typescipt
\starttext

\startchapter[title={Fun with Fonts in \ConTeXt}]

\showbodyfont[8pt]

\stopchapter

\stoptext

When i comment the third line i see a difference so i assume that the font
is loaded. (It's very unlikely that I'll ever use it because lm is the
default and when i want something different i go for a different font
design.)

Having thought about it for a bit, I'm not sure what you are getting at
here.  Am I to replace \usefontpath with \usetypescriptfile ?  That doesn't
help, in that Schola is still incorrect.

dunno, works here, just make sure the order is right, don't mess with content before \starttext unless you're sure a font is loaded (context does not preload (!), only loads lm w@ starttext when no font is loaded yet
While I understand that most people won't want to use New CM, I would be a
bit surprised if that font itself is the problem.  I can imagine other
people wanting to use some other font (which is not "installed", so they
have to use \usefontpath[...]) and maybe running into the same issue.

why usefontpath ... just put the files in a well defined place"

tex/texmf-fonts/fonts/data/othercm/

mtxrun --generate
mtxrun --script font --reload

Today I tried my test with TL2026 (2026.09.10) and things are OK there.
While I suspect it is working with that version of ConTeXt because TL2026
ships with the New CM fonts installed, I can't be 100% sure of that.

then \setupbodyfont should do the job when the "type-imp-foo" file is there with a font setup for "foo" , otherwise \usetypescriptfile + whatever you name it (there are several cm clones now and i suppose with ai present more will show up)

the more creative you are with placing fonts in various paths, the more likely it can clash (you can always enable trackers to see where / what / why / how)

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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to