ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: "Thomas A. Schmitz via ntg-context" <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: Re: [NTG-context] fallbacks
Date: Sat, 22 Apr 2023 20:33:16 +0200	[thread overview]
Message-ID: <144bd13a-b57d-97c7-cf2a-56fa7fe1ae15@gmx.es> (raw)
In-Reply-To: <5e3ec3c4-0701-f2b3-b703-ab7f6e3170b6@uni-bonn.de>

On 4/22/23 18:05, Thomas A. Schmitz via ntg-context wrote:
> Hi all,
> 
> today, I was struggling with a fallback font I had defined, and I 
> discovered that the key "check" doesn't work as I expected.
> [...] 
> If I have "check=no," the characters are taken from termes and replaced. 
> I was under the impression that "check" should, well, check if the 
> characters are not in the main font and fall back to the fallback font
> if they are not, but this doesn't appear to be the case.

Hi Thomas,

I don’t know what check does (maybe just check?), but the standard
behaviour with \definefallbackfamily is only to fall back when the
character is missing from the main font.

To force all characters from the range in the fallback font, "force=yes"
is required.

Here you have a minimal sample (which doesn‘t use "preset=range:greek"),
adding "force=yes" gets all Greek glyphs from GFS Heraklit:

  \definefallbackfamily [presentation] [serif] [GFSHeraklit]
  [range={greekandcoptic, greekextended}]
  \definefontfamily [presentation] [serif] [TeXGyrePagella]
  \setupbodyfont [presentation,12pt]

  \starttext
  Pπμᾷσδ
  \stoptext

Just in case it might help,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2023-04-22 18:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-22 16:05 Thomas A. Schmitz via ntg-context
2023-04-22 18:33 ` Pablo Rodriguez via ntg-context [this message]
2023-04-22 19:25   ` Thomas A. Schmitz via ntg-context
2023-04-25  5:46     ` Sylvain Hubert via ntg-context

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=144bd13a-b57d-97c7-cf2a-56fa7fe1ae15@gmx.es \
    --to=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /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).