On 08-06-2011 16:27, Ulrike Fischer wrote:
The default font used by fontspec is latin modern, which is what you
get. To change to another font, read the manual of fontspec (google it
or use texdoc fontspec on the command line) which will show how to use
it.
It says that I should use the command \setmainfont. But how do I
discover which name should I use to get the Concrete fonts? I tried
"Concrete", but I got an error message.
You can look in the pfb or the afm of the font used by pdflatex (the
font is mentioned at the end of the log). In general you can use the
family name. In this case sform10 says:
/FamilyName (Computer Modern Concrete) def
So this works:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Computer Modern Concrete}
\begin{document}
Some text. öäü߀
\end{document}
Xetex can use type1 (pfb) fonts directly (without external tfm) but
as some of them are very old it can happen that xetex doesn't like
it, or gets some chars wrong or .... In general it is better to use
open type fonts with xetex.
Attention: If you have a font with the same name in otf and type1 it
can happen that the tex->xdv step use the one font and the xdvipdfmx
step (xdv->pdf) the other and than the output is wrong (I had this
problem with the libertine fonts).
Thanks *a lot*.
Best regards,
José Carlos Santos
--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
http://tug.org/mailman/listinfo/xetex