1

I am revising the Fetamont fonts and I am faced with a unsolved problem related to XeLaTeX (or maybe fontspec):

I have put all the OpenType font faces in the local font folder (so XeLaTeX is able to find them by font name). If the following source file

\documentclass{article}
\usepackage{fontspec} 
\setmainfont{Fetamont}
\begin{document}
Test
\end{document}

is compiled with XeLaTeX (3.14159265-2.6-0.99996) it will set "Test" in the condensed face. How can I change the font information inside the *.otf of the various faces such that XeLaTeX (without adding a Fetamont.fontspec file) will choose the regular face instead?

(Changing the alphabetic order of the otf files is not a suitable solution. Changing the source file is not a suitable solution.)

  • Have you tried using "Fetamont Regular" (or please add some more information about the setup)? Have you tried addressing them by file name? – TeXnician Mar 5 '17 at 18:36
  • @TeXnician I don't want to change the source file, so "Fetamont Regular" or calling them by file name is not an option. – Linus Romer Mar 6 '17 at 7:47
2

Changing the names for the 10pt version to

Family:              Fetamont
Subfamily:           Regular
Full name:           Fetamont Regular 
PostScript name:     Fetamont-Regular

will find this version as the default regular. And the same for the bold version. With Bold10 it uses the heavy version instead of bold.

  • Removing the number 10 from the font name made it work. Thank you very much! You also mentioned the bold/heavy problem. This is still not solved by removing the number 10 from the bold font name (irrespective of leaving or removing the "10" for the heavy face). – Linus Romer Mar 6 '17 at 7:44
  • Also a problem with the font names. However, I would prefer "readable" font names: Fetamont-Regular.otf, Fetamont-Bold.otf, Fetamont-BoldItalic.otf, Fetamont-ExtraBold.otf, a.s.o. – user2478 Mar 6 '17 at 9:10
  • "Readable" file names are okay for me, but XeLaTeX does not seem to care (as far as I tested). If I remove the light faces from the local font folder, the bold face is chosen correctly. Magic... – Linus Romer Mar 6 '17 at 14:17
  • You should define different font families for Fetamont, Fetamont Condensed, and Fetamont Heavy. Then it should be easier to detect all fonts automatically by fontconfig or luaotfload. Readable fontnames are not really readed but useful for the user if he/she wants to see what font files are present. – user2478 Mar 6 '17 at 14:27
  • I do not want to make too much families, because I have already "normal" Fetamont and Fetamont Script. Still, I will make the OpenType file names "readable" as you suggested. Meanwhile, I have also found the solution for the bold/heavy problem: Changing the os2-weight of the regular faces from "500 Medium" to "400 Regular". – Linus Romer Mar 6 '17 at 14:39

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.