From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: substituting characters in math font
Date: Sat, 28 Oct 2017 10:46:35 +0200 [thread overview]
Message-ID: <59F443EB.7020000@gmail.com> (raw)
In-Reply-To: <CAFMOkGXNebdKqK2QhMeE9CqA1GaH_3AUCcBsoQJ226ZhCNLm2g@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2164 bytes --]
> Alan Bowen <mailto:bowenalan03@gmail.com>
> 19. Oktober 2017 um 15:05
> Many thanks for this, Wolfgang. That is very helpful. Right now, then,
> I have:
>
> \definefontfamily[mainface][rm][Brill]
> [protrusion=quality,
> expansion=quality,
> mode=node,
> force=yes,
> ]
> \definefallbackfamily [mainface] [rm] [Brill]
> [tf=style:italic, range={0x03B8}, offset={0x03D1}]%Greek theta
>
> \definefallbackfamily[mainface][mm][Brill]
> [range={0x30-0x39}] %oldstyle numerals, normal
>
> \definefallbackfamily [mainface] [mm] [Brill]
> [preset=math:lowercasenormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic]
> [preset=math:lowercaseitalic]
The font name for the third argument is *always* Brill and not
BrillItalic or BrillBold.
> \definefallbackfamily [mainface] [mm] [Brill]
> [preset=math:uppercasenormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic]
> [preset=math:uppercaseitalic]
>
> \definefallbackfamily [mainface] [mm] [Brill]
> [preset=math:lowercasegreeknormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic]
> [preset=math:lowercasegreekitalic]
> \definefallbackfamily [mainface] [mm]
> [Brill][preset=math:uppercasegreeknormal]
> \definefallbackfamily [mainface] [mm] [BrillItalic]
> [preset=math:uppercasegreekitalic]
>
> \definefontfamily[mainface][mm][TeX Gyre Termes Math][scale=0.94]
>
> \setupmathematics[ucgreek=normal, lcgreek=italic]
>
> \setupbodyfont[mainface,10pt]
>
>
> \starttext
>
> normal: 1234567890\quad math: \m{1234567890}
>
> normal: ABCDEFabcdef\quad italic: \emph{ABCDEFabcdef}\quad math:
> \m{\red ABCDEFabcdef}
>
> normal: ΑΒΓΔΕΘαβγδεθ\quad slanted: \emph{ΑΒΓΔΕΘαβγδεθ}\quad math:
> \m{\red ΑΒΓΔΕΘαβγδεθ}
>
> Greek theta: \emph{θ}
>
> \stoptext
>
> As you can see, all I need is to get the Brill lowercase Greek in
> mathmode and the proper slanted Greek theta.
\starttext
\m{\theta \vartheta}
\stoptext
> I have tried this with Pagella and Cambria instead of the Brill font
> and the problem persists. So I must be doing something wrong. But what?
>
Pagella and Cambria have a proper math font, why would you use fallbacks
for them.
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 7753 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 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
___________________________________________________________________________________
next prev parent reply other threads:[~2017-10-28 8:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-02 12:04 Alan Bowen
2017-10-18 13:07 ` Alan Bowen
2017-10-18 18:27 ` Wolfgang Schuster
2017-10-19 13:05 ` Alan Bowen
2017-10-27 19:48 ` Henning Hraban Ramm
2017-10-28 8:46 ` Wolfgang Schuster [this message]
2017-10-29 13:30 ` Alan Bowen
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=59F443EB.7020000@gmail.com \
--to=schuster.wolfgang@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).