Re: [NTG-context] definefallbackfamily stopped working for text fonts

2018-08-28 Thread Wolfgang Schuster



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


math_typescript_fallback.tex
Description: TeX document
___
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
___

Re: [NTG-context] definefallbackfamily stopped working for text fonts

2018-08-28 Thread Hans Hagen

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
___