ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Tim Steenvoorden <tim.steenvoorden@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Fontfallbacks using typescripts
Date: Sat, 4 Apr 2020 12:51:22 +0200	[thread overview]
Message-ID: <812e42de-a95d-4995-b450-7ed0fd887ddf@Spark> (raw)
In-Reply-To: <fdde1450-6d80-4925-9368-940bc2a2bf6a@Spark>


[-- Attachment #1.1: Type: text/plain, Size: 1346 bytes --]

Hi all,

I’d like to use Lucida (Type1) as my main font for text and math, but fallback on arrows from Pagella. Especially, I’d like to use the `\downzigzagarrow` which is not defined by Lucida.

Although direct lookup of the zigzag symbol in Pagella works, below typescripts do not seem to work. Can somebody give me a hint?

Cheers,
Tim

\startproduct test

\definefontfallback[pagellaarrows][texgyrepagella-math][arrows][check=yes,force=yes]
\definefontfallback[pagellaarrows][texgyrepagella-math][0x021AF][check=yes,force=yes]

\starttypescript[math][main]
\loadfontgoodies[lucida-typeone-math]
\definefontsynonym[MathRoman][lucidamath@lucida-math][fallbacks=pagellaarrows]
\stoptypescript

\starttypescript [main]
\definetypeface [main] [rm] [serif] [lucida] [default] [features=default]
\definetypeface [main] [ss] [sans] [lucida] [default] [features=default]
\definetypeface [main] [tt] [mono] [lucida] [default] [features=none]
\definetypeface [main] [hw] [handwriting] [lucida] [default] [features=default]
\definetypeface [main] [cg] [calligraphy] [lucida] [default] [features=default]
\definetypeface [main] [mm] [math] [main] [default]%[fallbacks=pagellaarrows]
\stoptypescript

\setupbodyfont[main,9pt]

$\downzigzagarrow,↯,\downarrow$

{\switchtobodyfont[pagella,10pt]↯}

\stopproduct


[-- Attachment #1.2: Type: text/html, Size: 3629 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

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

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

           reply	other threads:[~2020-04-04 10:51 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <fdde1450-6d80-4925-9368-940bc2a2bf6a@Spark>]

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=812e42de-a95d-4995-b450-7ed0fd887ddf@Spark \
    --to=tim.steenvoorden@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).