I am working on my first XeLaTeX project and I am still struggling with the font settings. I defined a new math font for a specific section unittable:

\setmathfont[version=unittable,SizeFeatures={Size=9}]{TeX Gyre Pagella Math}

So my plan is, to have TeX Gyre Pagella in font size 9pt for the section defined by \mathversion{unittable}. Unfortunately (and surprising to me), the size 9pt doesn't exist for TeX Gyre Pagella and I get the following warning:

LaTeX Font: Font shape 'TU/TeXGyrePagellaMath(1)/m/n' in size <10.95> not available size <9> substituted.

Is there any way around, e.g. scaling or using a font clone, which supports 9pt? Or is there an overview, of which font sizes are available for TeX Gyre Pagella? thanks a lot!

  • Can you add a complete short document that shows the problem? My reading of the error message above suggests it has got 9pt, but not 10.95pt.... – Thruston Sep 10 '20 at 20:09
  • 2
    there is only one font and is scalable to all sizes so it's just a matter of getting the tex declarations in order, not getting a different font. – David Carlisle Sep 10 '20 at 20:10
  • 1
    If the fonts are genuinely not scaling correctly in relation to each other, you could add the command \defaultfontfeatures{Scale=MatchLowercase} after \setmainfont. – Davislor Sep 11 '20 at 0:01
  • 2
    I'd need to check, I suspect that you are forcing it to use 9pt at all sizes so you are being warned that 11pt (10.95pt) is using 9pt. fontspec does have a scale option if I recall correctly. You want to scale by 0.9 not use 9pt at all sizes, I assume. – David Carlisle Sep 11 '20 at 7:44
  • 1
    why is a scale a rough estimate? In the standard classes If your \normalsize is 10pt then \small is 9pt so you could simply use \small or scale by 0.9 is exactly 9pt – David Carlisle Sep 11 '20 at 7:46

Using the Scaling argument worked properley:

\setmathfont[version=unittable,Scale=0.822]{TeX Gyre Pagella Math}

where I calculaed the ratio from the original and the expected font-size: 0.822 = 9/10.95

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.