OSDN Git Service

\jfont: new syntax "...;jfm=hoge/foo=2,bar,baz;..."
[luatex-ja/luatexja.git] / test / test33-jfm_feature.tex
1 %#!luatex
2 \input luatexja.sty
3 \catcode`\@=11
4 \jfont \testA=\ltj@stdmcfont:jfm=ujis/hoge,piyo at 9.62216pt
5 \jfont \testB=\ltj@stdmcfont:jfm=ujis/piyo,hoge;jp90 at 9.62216pt
6 \jfont \testC=\ltj@stdgtfont:jfm=ujis/;+jp90 at 9.62216pt
7 \jfont \testD=\ltj@stdgtfont:jfm=/abcd;+trad at 9.62216pt % error
8 \jfont \testE=\ltj@stdmcfont:jfm=ujis/piyo,hoge=2,=4,hoge=true;jp90 at 9.62216pt
9 \jfont \testF=\ltj@stdmcfont:jfm=ujis/hoge=true,piyo at 9.62216pt
10 % note that metrics of \testA and \testF are different; in \testF, the value of 'hoge' is a string 'true',
11 % while that in \testA is a boolean true.
12
13
14 \ltjsetparameter{differentjfm=both}
15 {\testA (あ葛鴎)}{\testB (い葛鴎)}{\testC (う葛鴎)}(え葛鴎){\tengt(あ葛鴎)}\par
16
17 \ltjsetparameter{differentjfm=paverage}
18 {\testA (あ葛鴎)}{\testB (い葛鴎)}{\testC (う葛鴎)}(え葛鴎){\tengt(あ葛鴎)}\par
19
20 \bye