[XeTeX] How could xetex find texlive fonts on a mac?

Herbert Schulz herbs at wideopenwest.com
Mon Oct 4 17:26:04 CEST 2010

On Oct 4, 2010, at 10:07 AM, ami wrote:

> 在 2010-10-4,下午9:15, Herbert Schulz 写道:
>> On Oct 3, 2010, at 11:25 PM, 德柳 邓 wrote:
>>> I'am a newer for texlive . I have installed texlive 2010 universal-darwin under command line for mac (not Mactex).--------------------------------------------------------------------------------------------------------------------------
>>> 1. I tried to compile $ xetex opentype-info.texThen i got a error :This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010) restricted \write18 enabled.entering extended mode
>>> (/Users/dang/Applications/texlivee/2010/texmf-dist/tex/xetex/xetexfontinfo/opentype-info.texkpathsea: Invalid fontname `Latin Modern Roman/ICU', contains ' '
>>> ! Font \testfont="Latin Modern Roman/ICU" at 12.0pt not loadable: Metric (TFM) file or installed font not found.l.26 \font\testfont="\myfontname/ICU" at 12pt                                             ?  Following the second given advice  I found on the texlive-en.pdf :(If you do not have sufficient privileges to carry out the steps above, you can instead do the following to make the TEX Live fonts available to you as an individual XeTEX user)
>>> $ cp ./texlive-fontconfig.conf  /Users/dang/.fonts.conf$ fc-cache -fv 
>>> I then ran xetex again but i got the same error. how can i do then ?-------------------------------------------------------------------------------------------------------------------------------2.   I tried latex pain.texi got some  error :(/Users/dang/Applications/texlivee/2010/texmf/tex/generic/hyphen/hyphen.tex! Patterns can be loaded only by INITEX.l.5 \patterns             { % just type <return> if you're not using INITEX?***********************so are there anyting else should be configed ?
>> Howdy,
>> Open Font Book and, for convenience, create a new library (File->New Library [Opt-Cmd-N]) and call it `TeX Fonts'. Then File->Add Fonts… [Cmd-O] and select the open type folder in texmf-dist; type Shft-Cmd-G (to open the dialog to enter a path) and enter /usr/local/texlive/2010/texmf-dist/fonts and press Return. Click on the opentype folder to select it and press Open.
>> Good Luck,
>> Herb Schulz
>> (herbs at wideopenwest dot com)
> Thank you ,Herb Schulz, It's working. :p  
> But why did it fail when i try the given advice.


Mac doesn't necessarily use the same font installation as in Linux.

PS: When updating makes changes to the opentype folder you'll have to re-open Font Book and it will have to recheck the fonts. You'll know because all of a sudden a file that uses one of those fonts will not compile.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

More information about the XeTeX mailing list