On Thu, Oct 22, 2026 at 08:49 (+0200), Hans Hagen wrote:

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

<snip>

>>> \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,

?!  Sorry, are you saying that the example I sent works on your system?

If so, do you have the New CM fonts in one of the directories that your
setup has already cached?

> 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

OK.  I didn't *think* I was messing with content before \starttext, but
without understanding the full effects of \usefontpath and \usebodyfont I
can't be certain of that.

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

Background: someone wanted ANSS-CE to have small caps working in SS text
(when the document font is LM).  Since LM does not have a small caps
variant ("style"?) for SS, someone else suggested using New CM for SS,
since New CM SS *does* have small caps.

Now, for my own system, it would be expeditious to just install New CM in
one of the usual places and run those commands, as you suggest.  However,
it would be nice it someone downloading the source for ANSS-CE was able to
just untar/unzip/clone it, and then enter the directory of interest and type
        context introCTX_eng.tex
or even
        make

We could add directions telling the person who wants to process ANSS-CE
him/herself to install New CM somewhere and then run those commands, but it
would be a lot nicer if things Just Worked™ without asking some (probable)
newish ConTeXt user to know where the files should be put before running
those commands.

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

When *I* use \setupbodyfont[newcomputermodern] (with or without
\usetypescriptfile[newcomputermodern] and \usebodyfont[newcomputermodern])
the Schola table remains messed up.

In particular, the suggested structure from your previous message did not
work (for me).

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

Please trust me, I am not trying to be creative here!  Like R.J. Drofnats,
I just want to typeset a beautiful document.

                                     Jim

___________________________________________________________________________________
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