%#! lualatex
\documentclass{article}
-\usepackage{fontspec,pdftexcmds}
-
-\input luatexja-core.sty
-\loadjfontmetric{mt}{ujis}
-
-\ExplSyntaxOn
-\xetex_or_luatex:nnn { \tl_set:Nn \l_fontspec_pre_feat_sclist }
- {
- \bool_if:NT \l_fontspec_icu_bool {
- \tl_if_empty:NF \l_fontspec_script_tl
- {
- script = \l_fontspec_script_tl ;
- language = \l_fontspec_lang_tl ;jfm=mt;
- }
- }
- }
- {
- mode = \l_fontspec_mode_tl ;
- \tl_if_empty:NF \l_fontspec_script_tl
- {
- script = \l_fontspec_script_tl ;
- language = \l_fontspec_lang_tl ;jfm=mt;
- }
- }
-\ExplSyntaxOff
-
-\newopentypefeature{Style}{OLDJIS}{+jp90}
-\newfontfamily\goth[BoldFont={ipaexg.ttf},Style=OLDJIS]{ipaexm.ttf}
+\usepackage{luatexja}
+\nonstopmode
-\begin{document}
\makeatletter
-\def\extract@font{%
- \get@external@font
- \ifnum\pdf@strcmp{\f@encoding}{EU2}=0
- \expandafter\jfont\font@name\external@font\relax
- \global\expandafter\font@name{\font@name}%
- \font@name\global\zw=\zw\global\zh=\zh
- \else
- \global\expandafter\font\font@name\external@font\relax
- \font@name
- \fi
- \ifnum\pdf@strcmp{\f@encoding}{EU2}=0%
- \global\kanjiskip=0pt plus 0.4pt minus 0.4pt%
- \global\xkanjiskip=0.25\zw plus 0.083333\zw minus 0.083333\zw%
- \fi
- \csname \f@encoding+\f@family\endcsname
- \csname\curr@fontshape\endcsname
- }
-% ! The font "ipaexg.ttf/I" cannot be found. というエラーが出る
-
-
-\goth abcdfghjfgあいう辻)\textbf{\unkern(辻あ{\Large あ}いう}
-
-\goth abcdfghjfgあいう辻)\textbf{(辻あ{\Large あ}いう}
-% \unkern がないとうなくいかない
-
-\tracingonline=1\scrollmode\showboxdepth=10000\showboxbreadth=10000\showlists
-\end{document}
\ No newline at end of file
+% from jsclasses
+\def\@setfontsize#1#2#3{%
+ \ifx\protect\@typeset@protect
+ \let\@currsize#1%
+ \fi
+ \fontsize{#2}{#3}\selectfont
+ \ifdim\parindent>\z@
+ \parindent=1\zw
+ \fi
+ \ltjsetparameter{kanjiskip={0\zw plus .1\zw minus .01\zw}}%
+ \@tempskipa=\ltjgetparameter{xkanjiskip}%
+ \ifdim\@tempskipa>\z@
+ \ltjsetparameter{xkanjiskip={0.25em plus 0.15em minus 0.06em}}%
+ \fi}
+
+\makeatother
+\begin{document}
+\section{NFSS2 のテスト}
+
+◆あいうえおabcかきく{\gt かきくa{\bf uyあ}いう}
+
+{\ltjsetparameter{xkanjiskip=0pt}イタリック補正\textit{f}◆{\it f\/}◆\par}
+
+\DeclareFixedFont{\dr}{JY3}{gt}{m}{n}{12}
+あいうえおpqr{\dr かaiu}きく){\bf (漢字}
+
+{abcdfghjfgあいう辻)\textbf{(辻あ{\Large あ}いう)}}
+
+{abcdfghjfgあいう辻)\textbf{\unkern(辻あ{\Large あ}いう}}
+
+\noindent{\tiny ◆あいうえおabcかきく{\gt かきくa{\bf uyあ}いう}}
+
+\noindent{\scriptsize ◆あいうえおabcかきく{\gt かきくa{\bf uyあ}いう}}
+
+\noindent{\footnotesize ◆あいうえおabcかきく{\gt かきくa{\bf uyあ}いう}}
+
+\noindent{\small ◆あいうえおabcかきく{\gt かきくa{\bf uyあ}いう}}
+
+\noindent{\normalsize ◆あいうえおabcかきく{\gt かきくa{\bf uyあ}いう}}
+
+\noindent{\large ◆あいうえおabcかきく{\gt かきくa{\bf uyあ}いう}}
+
+\noindent{\Large ◆あいうえおabcかきく{\gt かきくa{\bf uyあ}いう}}
+
+\noindent{\LARGE ◆あいうえおabcかきく{\gt かきくa{\bf uyあ}いう}}
+%\end{document}
+
+
+\end{document}