\documentclass{article}
\usepackage{luatexja}
-\usepackage{luatexja-fontspec}
+\usepackage{luatexja-fontspec,booktabs,array}
\defaultfontfeatures{Numbers=OldStyle}
\setmainfont{TeXGyreTermes}
\setsansfont{TeXGyreHeros}
\defaultjfontfeatures{Scale=1.2}
-\setmainjfont[BoldFont=IPAexGothic]{IPAexMincho} % default: JFM=ujis
+\defaultjfontfeatures[main-ipa]{UprightFont=IPAexMincho,BoldFont=IPAexGothic}
+\setmainjfont{main-ipa} % default: JFM=ujis
\setsansjfont{IPAexGothic}
\newjfontfamily\ipajisninety[CJKShape=JIS1990]{IPAexMincho}
\begin{document}
-\section{fontspec のテスト}
+\section{fontspecのテスト}
※テストのため,欧文文字に対して和文文字のサイズを大きくしています.
\noindent{\addjfontfeatures{Kerning=On} アノ ← Kerning=On}
}
+\subsection{unicode}
+
+設定依存:「\char"201C」「\char"010F」%"
+常に和文:「\ltjjachar"201C」「\ltjjachar"010F」%"
+常に欧文:「\ltjalchar"201C」「\ltjalchar"010F」%"
+
+{\tracingall\let\char=\ltjalchar\textquotedblleft}あ\textquotedblleft あ%
+{\let\char=\ltjjachar\textquotedblleft}あ“あ
+
+\begin{itemize}
+\item hoge
+\begin{itemize}
+\item hoge\textendash\ltjjachar"2013\ltjalchar"2013
+\begin{itemize}
+\item hoge
+\begin{itemize}
+\item hoge|\textperiodcentered|\ltjjachar"00B7|\ltjalchar"00B7|・|
+\end{itemize}
+\end{itemize}
+\end{itemize}
+\end{itemize}
+
+\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}