* [NTG-context] What is the current correct way to load fallback fonts?
[not found] <1317367526.1600012.1730812638382.ref@mail.yahoo.com>
@ 2024-11-05 13:17 ` Joel via ntg-context
2024-11-05 14:43 ` [NTG-context] " Henning Hraban Ramm
0 siblings, 1 reply; 2+ messages in thread
From: Joel via ntg-context @ 2024-11-05 13:17 UTC (permalink / raw)
To: Mailing List for ConTeXt Users; +Cc: Joel
[-- Attachment #1.1: Type: text/plain, Size: 2650 bytes --]
I am using EB Garamond for my font, but there's a few places I need some special characters, like a checkmark symbol, so I'm trying to set FreeSerif as a fallback.
\definefallbackfamily[main] [serif] [file:/home/joel/.fonts/FreeSerif.otf] [range=dingbats, force=yes]
\definefallbackfamily[main] [sans] [file:/home/joel/.fonts/FreeSerif.otf] [range=dingbats, force=yes]
\starttypescript[serif] [garamond]
\definefontsynonym[Serif] [file:/home/joel/.fonts/EBGaramond-Regular.otf]
\definefontsynonym[SerifBold] [file:/home/joel/.fonts/EBGaramond-Bold.otf]
\definefontsynonym[SerifItalic] [file:/home/joel/.fonts/EBGaramond-Italic.otf]
\definefontsynonym[SerifBoldItalic] [file:/home/joel/.fonts/EBGaramond-BoldItalic.otf]
\definefontsynonym[SerifCaps] [file:/home/joel/.fonts/EBGaramond12-AllSC.otf]
\stoptypescript
%
\starttypescript[sans] [garamond]
\definefontsynonym[Sans] [file:/home/joel/.fonts/OptimaLTStd-Bold.otf]
\definefontsynonym[SansBold] [file:/home/joel/.fonts/OptimaLTStd.otf]
\definefontsynonym[SansItalic] [file:/home/joel/.fonts/EBGaramond-Italic.otf]
\definefontsynonym[SansBoldItalic] [file:/home/joel/.fonts/LeMurmure-Regular.otf]
\definefontsynonym[SansCaps] [file:/home/joel/.fonts/EBGaramond12-AllSC.otf]
\stoptypescript
%
\starttypescript[garamond]
\definetypeface[garamond] [rm][serif][garamond][default]
\definetypeface[garamond] [ss][sans][garamond][default]
\definetypeface[garamond] [mm][math][math][default]
\stoptypescript
%
I've looked through many handbooks and old questions on-line and tried many configurations. It appears the way to define the fallback has changed many times over the years, and none I've tried works. I've confirmed I can make ConTeXt use my font "FreeSerif.otf", but I can't get it to appear as a fallback. Basically if the character can't be found in EB Garamond, I hope it will use FreeSerif.otf, but generally, I'm just using it for a couple special symbols.
How do I correct his so it properly displays the symbols from FreeSerif.otf?
--Joel
[-- Attachment #1.2: Type: text/html, Size: 4368 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread