tags:

views:

1215

answers:

5

I can't get italics to display correctly with xelatex for Japanese or Latin text using Japanese fonts.

Sample file:

\documentclass{book}

\usepackage{fontspec}
\setromanfont{MS Mincho}

\title{Test}
\begin{document}
regular テスト
\emph{italics テスト}
\end{document}

It should show "italics テスト" or at the very least "italics テスト" but instead shows "italics テスト".

The log says: LaTeX Font Info: Some font shapes were not available, defaults substituted.

So I guess most Japanese fonts don't have italics built in even for the latin characters. Does anybody know of free or inexpensive fonts with true italics like these that DOESN'T cost $595.00? http://store1.adobe.com/cfusion/store/html/index.cfm?store=OLS-US&event=displayFontPackage&code=1801
http://store1.adobe.com/cfusion/store/html/index.cfm?store=OLS-US&event=displayFontPackage&code=1800

+3  A: 

Japanese doesn't have italics, as far as I know. Emphasis is indicated in other ways: dots placed next to the characters, use of katakana instead of hiragana or kanji, enclosing in Japanese quotation marks, etc.

Amanda S
Japanese does have italics. I've updated the post to show italics for Japanese.
Tae
In that case I don't know, though at a guess I would say the fonts you are using might not have Japanese italics.
Amanda S
Japanese fonts don't have italics; any italics you see are auto-generated by slanting the regular font. Some Japanese+Latin fonts have italics purely for the Latin characters, leaving the kana and kanji alone.
bobince
Tae: I don't see Japanese italics; I see *oblique* katakana. I guess your browser is willing to oblique-ify anything, but TeX isn't.
Ken
bobince: Thanks for the clarification. I guess I can buy Adobe Kozuka Gothic/Mincho Pro Font with true italics for $595. Great. Do you know of any fonts that won't break the bank?
Tae
Not sure what version you're looking at, but the Kozuka Gothic/Mincho Pro I have here does not have italics.
bobince
bobince
Thanks, that's EXACTLY what I was looking for!
Tae
+3  A: 

The concept of "italic" is indeed not useful for Japanese characters; you can, of course, slant the characters, but not knowing Japanese I have no idea how a reader would interpret such.

My system does not have the font MS Mincho, but I do have a few Adobe Japanese fonts, and none of them have oblique versions. What you are seeing in other programs is probably the creation of a fake italic font by taking the "roman" (actually Japanese characters in this case) glyphs and just drawing them skewed. LaTeX has some concept of typography, and TeX will refuse to bastardize fonts in this way. If you want slanted Japanese characters, you will have to find a font for them.

Really, though, why do you want to "italicize" Japanese characters anyway? To indicate emphasis? If that's what you want, you really ought to find out how this is properly done in Japanese, and do it that way.

kquinn
Thanks for the explanation. I'm writing something with a lot of English and Japanese interspersed and I don't want to have to change fonts back and forth. Hiragino Kaku Gothic Pro W3 in particular looks good for both Japanese and English but I suppose I'll have to keep switching fonts then. Lame.
Tae
If you are only italicizing Latin characters (with a Japanese font), and you have another font's italic which is compatible with your roman font, you can set LaTeX to use the other font when you call for italics. You'll have to look up how to do this though; I can never remember the incantations.
kquinn
It's an ugly, hackish procedure, nasty to do and rarely needed, but it might be the right solution for you. If it doesn't end up being too hacky; TeX font support was designed in the late 70s, and it *shows*.
kquinn
Actually, METAFONT was completely re-designed in the mid-1980's. :-)
Ken
Thanks for correcting me; I wasn't sure if the '80s revamp included the font selection system. It's still a bunch of ancient rubbish, though.Another option for the OP: use boldface. My Japanese fonts have several weights, and it's an expedient, if typographically suboptimal, solution.
kquinn
Thanks for the idea. I'll give it a shot. I don't get why bold works and italics doesn't. But I'll use bold instead as a last resort. Thanks!
Tae
Using fontspec it's trivial to use a different font for italics. (Err, says the author of fontspec :) )
Will Robertson
A: 

Hi Tai...

I would suggest that you ask this question on the Tokyo Linux User Group (TLUG). In fact, there was a recent thread about beautiful Japanese fonts in LaTeX. Just Google Tokyo Linux User Group and get on the mailing list. They should be able to help you.

-N

This would be better as a comment on the original question rather than an "answer" :)
Will Robertson
A: 

As others have said, if the font doesn't contain italics then you're not going to have much luck.

However, sometimes you just need to be able to fake it, and recent versions of XeTeX+fontspec allow you to do just that:

\setmainfont[ItalicFont=MS Mincho,
  ItalicFeatures={FakeSlant}]{MS Mincho}

or something along those lines.

Will Robertson
I'm probably not doing this right but I get ! Package xkeyval Error: no value specified for key 'FakeSlant'.
Tae
+1  A: 

The Meiryo fonts work great and free too (for Windows users)! http://www.microsoft.com/downloads/details.aspx?FamilyID=f7d758d2-46ff-4c55-92f2-69ae834ac928&displaylang=en

It has italics for the latin characters to they will italics will probably show without having to switch to another font.

Tae