On 10/1/2026 11:20 PM, Thomas A. Schmitz wrote:
Here’s a question regarding system fonts. For a while, I was completely stumped 
why a document using the STIX font would throw numerous errors and not display 
correctly. Upon closer inspection, it turned out that ConTeXt was using a copy 
of STIX that is under /System/Library/Fonts/Supplemental (macOS 26.6.2); this 
instance doesn’t work with ConTeXt. After searching the mailing list, I set the 
variable OSFONTDIR to some nonsensical value so this instance doesn’t interfere 
with my installation.

  I am aware that for some new users, it is of benefit to have their system 
fonts available (personally, I’m not a big fan). However, shouldn’t these 
system fonts should come AFTER the fonts in the installation? So they will not 
shadow perfectly good fonts that are under the control either of the developers 
or the (hopefully knowledgeable) user? So my question is: can these system 
fonts be given a lower priority when ConTeXt looks for fonts?

Normally these fonts will not overload an already scanned one and system paths comes last, so likely there is some weird name clash (casing?).

In texmf-local/web2c/texmfcnf.lua you can do this:

return {
    type    = "configuration",
    version = "1.0.3",
    date    = "2026-10-01",
    comment = "No system fonts please!",
    author  = "Thomas Schmitz",
    content = {
        variables = {
        },
        directives = {
            ["fonts.usesystemfonts"] = false,
        },
    },
}

There is actually more one can set up there like paths, memory constraints and restrictions.

If you have doubts about fonts, check the log for lines like:

backend         > fonts > start embedded fonts
backend > fonts > 1 : file 'lmroman10-regular.otf', base 'ULSZQE+LMRoman10-Regular', instance 'lmroman10regularotf-1-0-0'
backend         > fonts > stop embedded fonts

I strip the path but we can have the full path if really needed.

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