* definefallbackfamily stopped working for text fonts
@ 2018-08-28 1:49 Henri Menke
2018-08-28 8:14 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Henri Menke @ 2018-08-28 1:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 891 bytes --]
Dear list,
In the latest beta the font fallback using a text font in math mode does
not work anymore. The log contains messages like
char 𝑐 (U+1D450) in font 'MinionPro-It' with id 8: missing
char 𝑎 (U+1D44E) in font 'MinionPro-It' with id 8: missing
char 𝑏 (U+1D44F) in font 'MinionPro-It' with id 8: missing
which is not surprising because a text font does not have math italics.
How can I get this to work again? MWE below.
Cheers, Henri
---
\definefontfamily [mainface] [rm] [Minion Pro]
\definefallbackfamily [mainface] [math] [Minion Pro]
[math:lowercaseitalic] [force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro] [math:digitsnormal]
[force=yes]
\definefontfamily [mainface] [math] [TeX Gyre Pagella Math]
\setupbodyfont[mainface]
\starttext
\input ward
\startformula
c^2 = a^2 + b^2
\stopformula
\stoptext
[-- Attachment #2: pEpkey.asc --]
[-- Type: application/pgp-keys, Size: 3987 bytes --]
[-- Attachment #3: 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: definefallbackfamily stopped working for text fonts
2018-08-28 1:49 definefallbackfamily stopped working for text fonts Henri Menke
@ 2018-08-28 8:14 ` Hans Hagen
2018-08-28 17:03 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2018-08-28 8:14 UTC (permalink / raw)
To: ntg-context
On 8/28/2018 3:49 AM, Henri Menke wrote:
> Dear list,
>
> In the latest beta the font fallback using a text font in math mode does
> not work anymore. The log contains messages like
>
> char 𝑐 (U+1D450) in font 'MinionPro-It' with id 8: missing
> char 𝑎 (U+1D44E) in font 'MinionPro-It' with id 8: missing
> char 𝑏 (U+1D44F) in font 'MinionPro-It' with id 8: missing
>
> which is not surprising because a text font does not have math italics.
> How can I get this to work again? MWE below.
Isn't it
\definefallbackfamily
[mainface] [math] [Minion Pro]
[range=lowercaseitalic,force=yes]
\definefallbackfamily
[mainface] [math] [Minion Pro]
[range=digitsnormal,force=yes]
or so? It's Wolfgangs speciality ...
> Cheers, Henri
>
> ---
>
> \definefontfamily [mainface] [rm] [Minion Pro]
>
> \definefallbackfamily [mainface] [math] [Minion Pro]
> [math:lowercaseitalic] [force=yes]
> \definefallbackfamily [mainface] [math] [Minion Pro] [math:digitsnormal]
> [force=yes]
> \definefontfamily [mainface] [math] [TeX Gyre Pagella Math]
>
> \setupbodyfont[mainface]
>
> \starttext
> \input ward
>
> \startformula
> c^2 = a^2 + b^2
> \stopformula
>
> \stoptext
>
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: definefallbackfamily stopped working for text fonts
2018-08-28 8:14 ` Hans Hagen
@ 2018-08-28 17:03 ` Wolfgang Schuster
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2018-08-28 17:03 UTC (permalink / raw)
To: mailing list for ConTeXt users, Hans Hagen
[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]
Hans Hagen schrieb am 28.08.18 um 10:14:
> On 8/28/2018 3:49 AM, Henri Menke wrote:
>> Dear list,
>>
>> In the latest beta the font fallback using a text font in math mode does
>> not work anymore. The log contains messages like
>>
>> char 𝑐 (U+1D450) in font 'MinionPro-It' with id 8: missing
>> char 𝑎 (U+1D44E) in font 'MinionPro-It' with id 8: missing
>> char 𝑏 (U+1D44F) in font 'MinionPro-It' with id 8: missing
>>
>> which is not surprising because a text font does not have math italics.
>> How can I get this to work again? MWE below.
>
> Isn't it
>
> \definefallbackfamily
> [mainface] [math] [Minion Pro]
> [range=lowercaseitalic,force=yes]
> \definefallbackfamily
> [mainface] [math] [Minion Pro]
> [range=digitsnormal,force=yes]
>
> or so? It's Wolfgangs speciality ...
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:lowercaseitalic,force=yes]
\definefallbackfamily [mainface] [math] [Minion Pro]
[preset=math:digitsnormal,force=yes]
but there is a bug in the fallback mechanism when you try to replace
characters which
are in different positions, e.g. mathitalic lowercase a (0x1D44E) with
upright lowercase a (0x61).
Attached is a test file where I tried to replace the uppercase and
lowercase mathitalic b
with a letter from a text font but it doesn’t work.
Wolfgang
[-- Attachment #2: math_typescript_fallback.tex --]
[-- Type: application/x-tex, Size: 2274 bytes --]
[-- Attachment #3: 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-28 17:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-28 1:49 definefallbackfamily stopped working for text fonts Henri Menke
2018-08-28 8:14 ` Hans Hagen
2018-08-28 17:03 ` Wolfgang Schuster
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).