[XeTeX] Problem with Japanese font
Wilfred van Rooijen
wvanrooijen at yahoo.com
Sat Feb 9 23:34:26 CET 2008
Hi Gerrit,
If you use fontspec, you need to specify the
PostScript name of the font in the \fontspec command.
Have you installed the font in a system-recognized
directory for fonts? If not, see the fontspec manual
to instruct to look for other locations.
On linux, you have to run 'fc-cache -fv ' to update
the font cache after installing the font.
On linux, you can use 'fc-list' to see which fonts are
available. It will give you also the PS-name. Example:
rooijen at love206a-rooijen ~ $ fc-list | grep Koz
Kozuka Mincho Pro\-VI,å°å¡ææ Pro\-VI,Kozuka
Mincho Pro\-VI R,å°å¡ææ Pro\-VI
R:style=R,Regular
Kozuka Gothic Pro,å°å¡ã´ã·ã㯠Pro,Kozuka Gothic
Pro M,å°å¡ã´ã·ã㯠Pro M:style=M,Regular
So I would use \fontspec{Kozuka Mincho Pro} to use the
first font.
Regards,
Wilfred
--- Gerrit Sangel <z0idberg at gmx.de> wrote:
> Hello list,
>
> I have the following problem with Xelatex:
>
> I want to write a text in Japanese with the font
> EPSON æ£æ¥·æ¸ä½ï¼
>
(http://www.i-love-epson.co.jp/download2/printer/driver/win/page/ttf30.htm)
>
> if i specify a command for the font:
>
> \newcommand{\kaisho}[1]{{\setromanfont{EPSON
> æ£æ¥·æ¸ä½ï¼}\XeTeXlinebreaklocale "ja"
> #1}}
>
> and use it in the text, Xelatex seems to run
> flawlessly but does not generate
> any output. In the log the following is written:
>
> \c at zf@famc at EPSON æ£æ¥·æ¸ä½ï¼=\count92
> Package fontspec Info: Defining font family for
> "EPSON æ£æ¥·æ¸ä½ï¼" with op
> tions [] on input line 31.
> Package fontspec Info: Could not resolve font EPSON
> æ£æ¥·æ¸ä½ï¼/B (it might
> not exist) on input line 31.
> Package fontspec Info: Could not resolve font EPSON
> æ£æ¥·æ¸ä½ï¼/I (it might
> not exist) on input line 31.
> Package fontspec Info: Could not resolve font EPSON
> æ£æ¥·æ¸ä½ï¼/BI (it migh
> t not exist) on input line 31.
>
> etc.
>
> I opened the font in Fontforge, and âEPSON
> æ£æ¥·æ¸ä½ï¼â is written as a Japanese
> family in the font names.
>
> Does anybody maybe know how to solve this?
>
>
> Thanks
> Gerrit Sangel
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
More information about the XeTeX
mailing list