OSDN Git Service

Disabled '/B', '/I' and '/BI' in non-embedded fonts.
[luatex-ja/luatexja.git] / test / test09-fontspec.tex
index d0d4bf6..a2aee60 100644 (file)
@@ -2,7 +2,7 @@
 \documentclass{article}
 
 \usepackage{luatexja}
-\usepackage{luatexja-fontspec}
+\usepackage{luatexja-fontspec,booktabs,array}
 
 \defaultfontfeatures{Numbers=OldStyle}
 \setmainfont{TeXGyreTermes}
 \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