Am 25.04.2014 um 21:56 schrieb Mikael P. Sundqvist
Hi!
1) If i write %%% \definefontfamily [luface] [rm] [Adobe Garamond Pro][opticalsize=yes] \definefontfamily [luface] [ss] [FrutigerLTstd][opticalsize=yes] \definefallbackfamily [luface] [math] [Adobe Garamond Pro] [math:uppercasenormal] \definefallbackfamily [luface] [math] [Adobe Garamond Pro] [math:uppercaseitalic] \definefallbackfamily [luface] [math] [Adobe Garamond Pro] [math:lowercasenormal] \definefallbackfamily [luface] [math] [Adobe Garamond Pro] [math:lowercaseitalic] \definefallbackfamily [luface] [math] [Adobe Garamond Pro] [math:digitsnormal] \definefontfamily [luface] [math] [Tex Gyre Pagella Math] \definebodyfontenvironment[18pt] \setupbodyfont[luface,18pt] %%%
it works well. What if I want to change TeX Gyre Pagella Math to Iwona? It turns out I cannot just change it to "Iwona", "iwona", "Iwona Math", ... Other fonts seem to work, but Iwona no?
When you set a math font the command looks first if there exists a font with the requested font and when this isn’t the case it tries to load a typescript with the given name. The problem with Iwona is that there is a font with this name in TeXLive or the context suite and \definefontfamily therefore tries to load the font. Even though this isn’t enough because you need a font in the opentype math format to use it as math font and this isn’t the case for Iwona. What you can do is to use the \definetypeface command to load the iwona math font: \definetypeface [luface] [mm] [math] [iwona] [default]
2) Say that I change the third last line above into
\definefontfamily [luface] [math] [Tex Gyre Pagella Math][scale=0.8]
to make the fonts fit better in size. Then the Adobe Garamond Pro in math mode also scales with the factor 0.8, which looks bad. Is there a way to scale only the TeX Gyre Pagella Math? Adding scale=1 to the \definefallbackfamily commands does not seem to change anything.
You have to use a value larger than 1 because size is relative to the size of the math font. \definefallbackfamily [luface] [math] [Adobe Garamond Pro] [preset=math:lowercasenormal,scale=1.25] Wolfgang