I use the Fourier package, which use the Palatino font. By trial-and-
error, I found that I had to scale Palatino by 0.925 to get about the
same character size in Xelatex and dvi-ps-pdf. But still, I can't get
them to match exactly. Is there a way to make sure that the characters
(and thus the line breaks) will be exactly the same? I use Miktex 2.9
and Windows 7. Here is a test file:
\documentclass{article}
\usepackage{ifxetex,fourier,lipsum}
\ifxetex
\usepackage{fontspec}
\setmainfont[Scale=0.925]{Palatino Linotype}
\else
\usepackage[T1]{fontenc}
\fi
\begin{document}
\lipsum
\end{document}
> I use the Fourier package, which use the Palatino font.
fourier does not use palatino, but utopia instead.
It's "mathpazo" that uses Palatino. So
\documentclass{article}
\usepackage{ifxetex,mathpazo,lipsum}
\ifxetex
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{Palatino Linotype}
\else
\usepackage[T1]{fontenc}
\fi
\begin{document}
\lipsum
\end{document}
Of course Palatino Linotype might be different from URW Palladio
that's used with the standard installations, so a scaling might
be necessary also in this case.
You can try also "TeX Gyre Pagella", which is still another
clone of Palatino; to use it on the (pdf)latex side, say
\usepackage{tgpagella}
in the \else branch of \ifxetex.
Ciao
Enrico
Sorry, I was confused. So I have to buy the Utopia font if I want to
use them with Xelatex? If so, will they be exactly the same as those
from the fourier package?
If I am correct, line 284 of fourier.sty defines the scaling factor used
by fourier :
\DeclareFontShape{U}{futm}{m}{n}{
<-> s * [.92] fourier-bb
}{}
So I advise you to change your example and use Utopia instead of
Palatino. The following example should be fine for your purpose (where I
use Heuristica as a replacement for Utopia - see
http://code.google.com/p/evristika/ ) :
\documentclass{article}
\usepackage{ifxetex,fourier,lipsum}
\ifxetex
\usepackage{fontspec}
\setmainfont[Scale=0.92]{Heuristica}
Thanks! The 0.92 scale is wrong but I will try to adjust it.
> I am writing a long document for which I need to use Xelatex. However,
> I have lots of Pstricks figures and Xelatex is very slow (is this
> normal by the way?).
XeTeX is slower but a lot of pstricks will make it really slow as
xdvipdfmx has to convert them on-the-fly at each compilation and one
pstricks can consist of many parts. You should better generate
external pictures (e.g. with the preview package) and include these.
> So I use the dvi-ps-pdf route when I dont need to
> edit the characters for which I need Xelatex.
>
> I use the Fourier package, which use the Palatino font. By trial-and-
> error, I found that I had to scale Palatino by 0.925 to get about the
> same character size in Xelatex and dvi-ps-pdf. But still, I can't get
> them to match exactly. Is there a way to make sure that the characters
> (and thus the line breaks) will be exactly the same?
Even if you can setup fonts so that are quite similar for both
engines you will probably not get exactly the same line breaks or
page breaks everywhere.
--
Ulrike Fischer
Adobe's type1 Utopia font is free (cost-free and free license)
and it is included in TeXLive. It is what my fourier package
ultimately includes when pdflatex is used. It is not an
opentype font, but one might still be able to convince xetex
to use it.
An opentype derivative called Heuristica is being developed
(see e.g., ftp://ftp.dvo.ru/pub/Font/heuristica/). It also
is free.
Dan
To reply by email, change LookInSig to luecking
> Adobe's type1 Utopia font is free (cost-free and free license)
> and it is included in TeXLive. It is what my fourier package
> ultimately includes when pdflatex is used. It is not an
> opentype font, but one might still be able to convince xetex
> to use it.
Yes, but it lacks real smallcaps, which are available in the
non free Utopia Expert font. XeTeX is perfectly happy to use
Type1 fonts (well, almost).
> An opentype derivative called Heuristica is being developed
> (see e.g., ftp://ftp.dvo.ru/pub/Font/heuristica/). It also
> is free.
It's very promising, I'd say.
Ciao
Enrico
You might also try the real small caps of venturis, a free font derived
from Utopia.
See for example
http://milde.users.sourceforge.net/Matheschriften/fourier-venturissc-test.tex
http://milde.users.sourceforge.net/Matheschriften/fourier-venturissc-test.pdf
Günter