On 3/18/20 9:59 AM, Jan Willem Flamma wrote:
Dear list members,
I have been running ConTeXt on a Mac for a number of years.
I just installed ConTeXt LMTX on a new Windows machine following instructions from the Pragma-ADE website.
When I process the below MWE on the Windows machine the formulas are not displayed in the correct font.
Hi Jan,
this sample shows the issue:
\definefontfamily [mainface] [rm] [DejaVu Serif] \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math] \setupbodyfont[mainface] \starttext \m{\sin^2(t)^2 + \cos^2(t) = 1} \setupbodyfont[pagella] \m{\sin^2(t)^2 + \cos^2(t) = 1} \stoptext
For some strange reason, ConTeXt latest (LuaTeX 2.05 20200229 + ConTeXt MkIV 2020.03.10 14:52) doesn’t embed the font.
I’m using Linux 64bit (I wonder whether ConTeXt latest on macOS won’t give the same output).
I think this may be a bug in ConTeXt latest.
Just in case it helps,
Pablo -- http://www.ousia.tk
On 3/18/2020 10:44 AM, Pablo Rodriguez wrote:
\definefontfamily [mainface] [rm] [DejaVu Serif] \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math] \setupbodyfont[mainface] \starttext \m{\sin^2(t)^2 + \cos^2(t) = 1} \setupbodyfont[pagella] \m{\sin^2(t)^2 + \cos^2(t) = 1} \stoptext
what if you wipe the cache?
On 3/18/20 10:51 AM, Hans Hagen wrote:
On 3/18/2020 10:44 AM, Pablo Rodriguez wrote:
\definefontfamily [mainface] [rm] [DejaVu Serif] \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math] \setupbodyfont[mainface] \starttext \m{\sin^2(t)^2 + \cos^2(t) = 1} \setupbodyfont[pagella] \m{\sin^2(t)^2 + \cos^2(t) = 1} \stoptext
what if you wipe the cache?
Hans,
using this sample:
\definefontfamily [mainface] [rm] [DejaVu Serif] \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math] \setupbodyfont[mainface] \starttext \m{\sin^2(t)^2 + \cos^2(t) = 1} \stoptext
Although I get this message in line 38 from the log file:
mkiv lua stats > loaded fonts: 2 files: texgyrepagella-math.otf, dejavuserif.ttf
There is a previous message in lines 19 and 20 from the log file (same message repeated twice):
fonts > math: unset for global bodyfont mainface at 12pt
I have just checked and noticed that MkIV (LuaTeX 1.11 7226 + ConTeXt MkIV 2020.01.30 14:13) embeds the font fine.
I hope this helps,
Pablo -- http://www.ousia.tk
On 3/18/2020 2:35 PM, Pablo Rodriguez wrote:
On 3/18/20 10:51 AM, Hans Hagen wrote:
On 3/18/2020 10:44 AM, Pablo Rodriguez wrote:
\definefontfamily [mainface] [rm] [DejaVu Serif] \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math] \setupbodyfont[mainface] \starttext \m{\sin^2(t)^2 + \cos^2(t) = 1} \setupbodyfont[pagella] \m{\sin^2(t)^2 + \cos^2(t) = 1} \stoptext
what if you wipe the cache?
Hans,
using this sample:
\definefontfamily [mainface] [rm] [DejaVu Serif] \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math] \setupbodyfont[mainface] \starttext \m{\sin^2(t)^2 + \cos^2(t) = 1} \stoptext
Although I get this message in line 38 from the log file:
mkiv lua stats > loaded fonts: 2 files: texgyrepagella-math.otf, dejavuserif.ttf
There is a previous message in lines 19 and 20 from the log file (same message repeated twice):
fonts > math: unset for global bodyfont mainface at 12pt
that is weird .. question for Wolfgang: is selectfont sensitive for the order of looping over a hash?
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen schrieb am 18.03.2020 um 18:16:
On 3/18/2020 2:35 PM, Pablo Rodriguez wrote:
On 3/18/20 10:51 AM, Hans Hagen wrote:
On 3/18/2020 10:44 AM, Pablo Rodriguez wrote:
[...]
fonts > math: unset for global bodyfont mainface at 12pt
that is weird .. question for Wolfgang: is selectfont sensitive for the order of looping over a hash?
I looked at the problem and the math font fails because I use too many \definefontsynonym entries for each file which is needed for fallback fonts but math needs a simpler lookup chain.
Wolfgang