Skip to content

Commit

Permalink
add tests/nfss_kshape.tex (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
aminophen committed Mar 14, 2020
1 parent 134f045 commit 2a1cf6f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions tests/nfss_kshape.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
\documentclass{article}
\begin{document}

{\itshape a}
% 内部で \fontshape が欧文と和文の両方を変えようとする
% => 和文の変更に失敗しても警告は出したくない

{\fontshape{ait}
\selectfont}
% \fontshape は欧文と和文の両方を変えようとする
% => 和文の変更に失敗しても警告は出したくない

{\fontshapeforce{asl}
\selectfont}
% \fontshapeforce は欧文と和文の両方を変えようとする
% => 和文の変更に失敗しても警告は出したくない

{\kanjishape{kit}
\selectfont}
% \kanjishape は和文だけを変更 => 警告すべき

{\kanjishapeforce{ksl}
\selectfont}
% \kanjishapeforce は和文だけを変更 => 警告すべき

{\usefont{JY1}{mc}{m}{ksc}}
% \usefont は encoding に応じて \useroman と \usekanji の一方だけを実行
% この例は和文横組フォントだけを変えることを意図 => 警告すべき

{\fontshape{asc}
\selectfont}
% \fontshape は欧文と和文の両方を変えようとする
% => 和文の変更に失敗しても警告は出したくない

{\fontshapeforce{asw}
\selectfont}
% \fontshapeforce は欧文と和文の両方を変えようとする
% => 和文の変更に失敗しても警告は出したくない

\end{document}

0 comments on commit 2a1cf6f

Please sign in to comment.