[OS X TeX] Re: Font cache problems with XeLaTeX under Snow Leopard

J.McKenzie Alexander jalex at lse.ac.uk
Sat Sep 26 13:42:31 EDT 2009


Many thanks to Peter Dyballa and Jonathan Kew for pointing out that I  
should be using \fontsize rather than \fontspec. That definitely  
works. Having sorted that issue out, I'm now encountering another  
problem.  Consider the following sample document:

	\documentclass[11pt,a4paper]{article}
	\usepackage[]{fontspec}
	\defaultfontfeatures{Mapping=tex-text}

	\begin{document}

	\setmainfont{Baskerville}

	\verb+\setmainfont{Baskerville}+

	This should appear in normal size.

	{\fontsize{24pt}{32pt}\selectfont This should appear larger.}

	This should appear in normal size, with \emph{italics} and
	\textbf{boldface} text.

	\bigskip

	\setmainfont{Book Antiqua}

	\verb+\setmainfont{Book Antiqua}+

	This should appear in normal size.

	{\fontsize{24pt}{32pt}\selectfont This should appear larger.}

	This should appear in normal size, with \emph{italics} and
	\textbf{boldface} text.

	\bigskip

	\setmainfont{Hoefler Text}

	\verb+\setmainfont{Hoefler Text}+

	This should appear in normal size.

	{\fontsize{24pt}{32pt}\selectfont This should appear larger.}

	This should appear in normal size, with \emph{italics} and
	\textbf{boldface} text.

	\end{document}

When I run the above through XeLaTeX, only the portion using Book  
Antiqua appears as it should, with the appropriate changes in font  
size, italics and boldface. However, the portions using Baskerville  
and Hoefler Text do not appear right: no italics or boldface are shown  
(although the changes in font size are correct).

Here is a PDF showing the garbled output:
http://files.me.com/j.mckenzie.alexander/gscgex

And here is a screen shot of what that PDF looks like when viewed in  
Skim on my computer (just in case the problem isn't with the PDF):
http://files.me.com/j.mckenzie.alexander/5v50ua

> On 26 Sep 2009, at 12:00:34, Jonathan Kew wrote:
>
> Now, if you're seeing a change in behavior between Leopard and Snow
> Leopard, with the exact same versions of xetex and fontspec, that is
> still a little worrying. Do you have the recent xdvipdfmx update
> (v0.7.8)? What format are the fonts you're  
> using: .ttf, .ttc, .otf,....?

Ah - I'm not using the most recent xdvipdfmx update. I'm still running  
version 0.7.3.  Do I need to be running the beta version of  
TeXLive-2009 to get the most recent version? (The TeX Live Utility app  
does not indicate that I need to upgrade anything.)

According to Font Book, Baskerville is a .ttc file, Hoefler Text is  
a .ttc file, and there's no extension specified for Book Antiqua. (It  
just says it is a TrueType font.)

Many thanks for all of your help!

Cheers,

Jason

--
Dr J. McKenzie Alexander
Department of Philosophy, Logic and Scientific Method
London School of Economics and Political Science
Houghton Street, London WC2A 2AE

Please access the attached hyperlink for an important electronic communications disclaimer: http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm



More information about the MacOSX-TeX mailing list