LaTeX: selecting font with fontenc package

  • Context: LaTeX 
  • Thread starter Thread starter AlephZero
  • Start date Start date
  • Tags Tags
    Font Latex
Click For Summary
SUMMARY

The discussion centers on using the fontenc package with XeTeX from TexLive 2011 on Windows to select the Adobe Utopia font. The user encountered errors when attempting to set the main font using commands like \setmainfont{Utopia}, as the fontenc package is designed for TrueType or OpenType fonts, while the available version of Utopia is in Postscript Type 1 format. The user concludes that Adobe provides a TrueType version of Utopia, but it is not free, and converting Type 1 fonts to TrueType accurately poses significant challenges.

PREREQUISITES
  • Familiarity with XeTeX and TexLive 2011
  • Understanding of font formats: TrueType, OpenType, and Postscript Type 1
  • Knowledge of LaTeX packages, specifically fontenc and fourier
  • Basic troubleshooting skills in LaTeX font management
NEXT STEPS
  • Research how to use the \setmainfont command with TrueType and OpenType fonts in XeTeX
  • Explore the process of converting Postscript Type 1 fonts to TrueType
  • Investigate alternative font packages compatible with XeTeX
  • Learn about font management in LaTeX, focusing on the fontenc package documentation
USEFUL FOR

LaTeX users, typesetters, and anyone working with XeTeX who needs to manage font selection and compatibility issues effectively.

AlephZero
Science Advisor
Homework Helper
Messages
6,999
Reaction score
299
Running XeTeX from TexLive 2011 on windows, I have been using
Code:
\usepackage{fourier}
To get the Adobe Utopia font. That works fine.

For reasons irrelevant to the question, I want to use the fontenc package to select fonts. So I need to do something like
Code:
\usepackage{fontenc}
\setmainfont{ ... what goes here? }
Utopia, utopia, and Utopia-Regular don't work (lots of errors, TeX tries to build the fonts using textmf, and fails).

Searching for file names containing utopia and Fourier didn't help.

The fontenc package documentation doesn't help either - it makes the assumption that if you want to use a font, you know what it's called. WRONG!

Any suggestions?

FWIW the fontenc package itself is working - a demo file using a different font (Junicode) works fine.
 
Physics news on Phys.org
I think I've answered my own question. The version of the Adobe Utopia font that is free with TeX distributions in in Postscript Type 1 format. The font handling in XeTeX and the fontenc package is meant for TrueType or OpenType fonts.

Adobe do a TrueType version of Utopia, but it's not free.

And unfortunately, converting Type 1 fonts to TrueType accurately is hard, unlike the reverse conversion.

That doesn't solve the problem, but at least it explains it.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
13K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 16 ·
Replies
16
Views
32K
  • · Replies 7 ·
Replies
7
Views
12K
  • · Replies 4 ·
Replies
4
Views
12K
  • · Replies 2 ·
Replies
2
Views
5K
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 1 ·
Replies
1
Views
7K