From: Joel via ntg-context <ntg-context@ntg.nl>
To: Mailing List for ConTeXt Users <ntg-context@ntg.nl>
Cc: Joel <uaru99@yahoo.com>
Subject: [NTG-context] What is the current correct way to load fallback fonts?
Date: Tue, 5 Nov 2024 13:17:18 +0000 (UTC) [thread overview]
Message-ID: <1317367526.1600012.1730812638382@mail.yahoo.com> (raw)
In-Reply-To: <1317367526.1600012.1730812638382.ref@mail.yahoo.com>
[-- 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
___________________________________________________________________________________
next parent reply other threads:[~2024-11-05 13:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1317367526.1600012.1730812638382.ref@mail.yahoo.com>
2024-11-05 13:17 ` Joel via ntg-context [this message]
2024-11-05 14:43 ` [NTG-context] " Henning Hraban Ramm
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=1317367526.1600012.1730812638382@mail.yahoo.com \
--to=ntg-context@ntg.nl \
--cc=uaru99@yahoo.com \
/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).