Ticket #33983

luatexja-fontspec will yield some warnings

Open Date: 2014-07-01 02:01 Last Update: 2015-01-26 10:52

Reporter:
Owner:
(None)
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
4
Severity:
4
Resolution:
Remind
File:
None

Details

On my linux box (with english locale and texlive 2014), the following code will generate warning.

\documentclass{article} 
\usepackage{luatexja-fontspec}
\begin{document}
\end{document}

LaTeX Font Warning: Font shape `JY3/mc/m/sl' undefined
LaTeX Font Warning: Font shape `JY3/mc/m/it' undefined

How can I suppress these warnings?

Ticket History (3/4 Histories)

2014-07-01 02:01 Updated by: yichao_zhou
  • New Ticket "luatexja-fontspec will yield some warnings" created
2014-07-01 02:02 Updated by: yichao_zhou
  • Details Updated
2014-07-02 11:00 Updated by: kmaeda
Comment

The reason is that luatexja does not define \slshape and \itshape for Japanese fonts as default.

Minimal example:

\documentclass{minimal}
\usepackage{luatexja}
\begin{document}
\itshape
\end{document}

Almost all Japanese (and Chinese?) fonts do not have italic shape. For example,

\documentclass{minimal}
\usepackage{fontspec}
\begin{document}
\fontspec{IPAMincho}\itshape
\end{document}
generates
LaTeX Font Warning: Font shape `EU2/IPAMincho(0)/m/it' undefined
(Font)              using `EU2/IPAMincho(0)/m/n' instead on input line 4.

2015-01-26 10:52 Updated by: h7k
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2015-01-26 10:52
  • Resolution Update from None to Remind

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login