[XeTeX] Problem with Japanese font

Gerrit Sangel z0idberg at gmx.de
Sun Feb 10 14:01:49 CET 2008


Hello,

hm, maybe you have to switch the encoding of the mail to UTF-8.

I select them via setromanfont because I read it in some example file... but 
this bugged me all time and I did not know a better way to select a font.

He does not revert back to the old font if I do this with \newfontfamily and 
then \mincho{日本語} or so. After I have first written \mincho, he does not use 
the Fraktur font anymore.

So, how is the “correct” way to change the fonts?
Thanks

Am Sonntag 10 Februar 2008 schrieb Cyril Niklaus:
> On 10 févr. 08, at 19:09, Gerrit Sangel wrote:
> > \newcommand{\antiqua}[1]{{\setromanfont{Gentium}#1}}
> > \newcommand{\kaiti}[1]{{\setromanfont{AR PL ZenKai
> > Uni}\XeTeXlinebreaklocale "zh" #1}}
> > \newcommand{\mincho}[1]{{\setromanfont{IPAMincho}
> > \XeTeXlinebreaklocale "ja"
> > #1}}
>
> Hello
> Can't really help you here with the fonts, as their names come up
> garbled in os x 10.5.1 I can't select them.
> But I did notice something strange in your preamble: why do you use
> the \setromanfont command to define fonts for Chinese and Japanese?
> You should use the \newfontfamily command, eg:
>
>    \newfontfamily{\mincho}{IPAMincho}
>
> Cyril


> The font seems to have two names:
>
> english US Family :EPSON ê≥û≤èëëÃÇl
> japanese Family: EPSON 正楷書体M
>
> Maybe this confuses XeTeX?
>

I also thought so. But it doesn’t work with “EPSON ê≥û≤èëëÃÇl” either. :(

Gerrit


More information about the XeTeX mailing list