[OS X TeX] fonts handling

Ulrich Groh ugroh at mac.com
Fri Sep 17 03:39:52 EDT 2010


I have just installed TeXlive2010 and MacTeXtras, where I found the source file "WelcomeToMacTeX.tex". As expected, compiling it I 
failed because the GentiumBookBasic-font is not installed at my Mac. I downloaded something like GenBkBasB.ttf from the net (after 
googling), installed it in the /Library/fonts directory put this in into \setromanfont[]{GenBkBasB} and compiled it but I failed again.
(I was using XeLaTeX).

Then I checked it with

%%
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[12pt,]{article}
%%
\usepackage{fontspec,xltxtra,xunicode}
\setmainfont[]{Osaka}

\begin{document}
This is a test. //
% some Japanese charakters
ひりがな 囲碁

\textbf{This is a test} //
\textit{This is a test}  //
\end{document}

putting different ttf-file names into \setmainfont. I worked with all ttf-files in my /Library/fonts directory but still not with the 
above mentioned font nor with my sazanami.ttf font, which I am using in the CJK-environment under LaTeX. I also converted the GenBkBasB.ttf font with fontforge into afm, pfb, ... files as I did it with the sazanami.ttf font and installed the related files
in my local ~/Library/texmf-tree, run updmap-sys etc. but I failed either.

In both cases the system is looking for the mf-files etc. Heres is the error message of it:

graphics.cfg)
(/usr/local/texlive/2010/texmf-dist/tex/xelatex/xetex-def/
! I can't find file `sazanami'.
<*> ...ljfour; mag:=1; nonstopmode; input sazanami
                                                  
Please type another input file name
! Emergency stop.
<*> ...ljfour; mag:=1; nonstopmode; input sazanami
                                                  
Transcript written on mfput.log.
grep: sazanami.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input sazanami' failed to make sazanami.tfm.
./font-test.tex:7: Font \zf at basefont=sazanami at 10.0pt not loadable: Metric (T
FM) file or installed font not found.
<to be read again> 
                   \zf at basefont 
l.7 \setmainfont[]{sazanami}
                            
? 
 

Any help possible? What are the otf, dfont, ttc files?

Ulrich







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20100917/4ea44a84/attachment.html>


More information about the MacOSX-TeX mailing list