OSDN Git Service

luatexja-preset: use CJKShape=NLC/JIS1990.
[luatex-ja/luatexja.git] / test / test09-fontspec.tex
index a8a9c05..a2aee60 100644 (file)
@@ -2,7 +2,7 @@
 \documentclass{article}
 
 \usepackage{luatexja}
-\usepackage{luatexja-fontspec}
+\usepackage{luatexja-fontspec,booktabs,array}
 
 \defaultfontfeatures{Numbers=OldStyle}
 \setmainfont{TeXGyreTermes}
@@ -16,7 +16,7 @@
 
 \begin{document}
 
-\section{fontspec のテスト}
+\section{fontspecのテスト}
 
 ※テストのため,欧文文字に対して和文文字のサイズを大きくしています.
 
 \subsection{unicode}
 
 設定依存:「\char"201C」「\char"010F」%"
-常に和文:「\kchar"201C」「\kchar"010F」%"
-常に欧文:「\achar"201C」「\achar"010F」%"
+常に和文:「\ltjjachar"201C」「\ltjjachar"010F」%"
+常に欧文:「\ltjalchar"201C」「\ltjalchar"010F」%"
 
-{\tracingall\let\char=\achar\textquotedblleft}あ\textquotedblleft あ%
-{\let\char=\kchar\textquotedblleft}あ“あ
+{\tracingall\let\char=\ltjalchar\textquotedblleft}あ\textquotedblleft あ%
+{\let\char=\ltjjachar\textquotedblleft}あ“あ
 
 \begin{itemize}
 \item hoge
 \begin{itemize}
-\item hoge\textendash\kchar"2013\achar"2013
+\item hoge\textendash\ltjjachar"2013\ltjalchar"2013
 \begin{itemize}
 \item hoge
 \begin{itemize}
-\item hoge\textperiodcentered\kchar"00B7\achar"00B7・
+\item hoge|\textperiodcentered|\ltjjachar"00B7|\ltjalchar"00B7|・|
 \end{itemize}
 \end{itemize}
 \end{itemize}
 \end{itemize}
-\end{document}
+
+\newpage
+\section{fontspecによる非埋め込みフォント}
+\newjfontfamily\test[NoEmbed]{Ryumin-Light}
+
+\test
+\begin{tabular}{ll>{\itshape}l>{\slshape}l>{\scshape}l}
+\toprule
+&Upright&Italic&Slanted&Small Caps\\
+\midrule
+Regular&あいうえお&あいうえお&あいうえお&あいうえお\\
+Bold   &\textbf{あいうえお}&\textbf{あいうえお}&\textbf{あいうえお}&\textbf{あいうえお}\\
+\bottomrule
+\end{tabular}
+
+\end{document}
\ No newline at end of file