OSDN Git Service

Merge branch 'kitagawa_test' into kitagawa_cid
[luatex-ja/luatexja.git] / test / test09-fontspec.tex
1 %#! lualatex
2 \documentclass{article}
3
4 \usepackage{luatexja}
5 \usepackage{luatexja-fontspec}
6
7 \defaultfontfeatures{Numbers=OldStyle}
8 \setmainfont{TeXGyreTermes}
9 \setsansfont{TeXGyreHeros}
10
11 \defaultjfontfeatures{Scale=1.2}
12 \setmainjfont[BoldFont=IPAexGothic]{IPAexMincho} % default: JFM=ujis
13 \setsansjfont{IPAexGothic}
14
15 \newjfontfamily\ipajisninety[CJKShape=JIS1990]{IPAexMincho}
16
17 \begin{document}
18
19 \section{fontspecのテスト}
20
21 ※テストのため,欧文文字に対して和文文字のサイズを大きくしています.
22
23 \noindent 通常:「あいうえお」、(かきくけこ)。{\bf 太字}と{\gt ゴシック}。
24
25 {\addjfontfeatures{JFM=mono}
26 \noindent 等幅:「あいうえお」、(かきくけこ)。{\bf 太字}と{\gt ゴシック}。
27 }
28
29 \subsection{JIS2004}
30 逢芦飴溢茨鰯淫迂厩噂餌襖迦牙廻恢晦蟹葛鞄釜翰翫徽
31 祇汲灸笈卿饗僅喰櫛屑粂祁隙倦捲牽鍵諺巷梗膏鵠甑叉
32 榊薩鯖錆鮫餐杓灼酋楯薯藷哨鞘杖蝕訊逗摺撰煎煽穿箭
33 詮噌遡揃遜腿蛸辿樽歎註瀦捗槌鎚辻挺鄭擢溺兎堵屠賭
34 瀞遁謎灘楢禰牌這秤駁箸叛挽誹樋稗逼謬豹廟瀕斧蔽瞥
35 蔑篇娩鞭庖蓬鱒迄儲餅籾爺鑓愈猷漣煉簾榔屢冤叟咬嘲
36 囀徘扁棘橙狡甕甦疼祟竈筵篝腱艘芒虔蜃蠅訝靄靱騙鴉
37
38 \subsection{JIS1990}
39 {\ipajisninety
40 逢芦飴溢茨鰯淫迂厩噂餌襖迦牙廻恢晦蟹葛鞄釜翰翫徽
41 祇汲灸笈卿饗僅喰櫛屑粂祁隙倦捲牽鍵諺巷梗膏鵠甑叉
42 榊薩鯖錆鮫餐杓灼酋楯薯藷哨鞘杖蝕訊逗摺撰煎煽穿箭
43 詮噌遡揃遜腿蛸辿樽歎註瀦捗槌鎚辻挺鄭擢溺兎堵屠賭
44 瀞遁謎灘楢禰牌這秤駁箸叛挽誹樋稗逼謬豹廟瀕斧蔽瞥
45 蔑篇娩鞭庖蓬鱒迄儲餅籾爺鑓愈猷漣煉簾榔屢冤叟咬嘲
46 囀徘扁棘橙狡甕甦疼祟竈筵篝腱艘芒虔蜃蠅訝靄靱騙鴉
47 }
48
49 \vspace{1\zw}
50
51 \subsection{Kerning}
52 {\jfontspec[NoEmbed]{Ryumin-Light}
53
54 アノ ← Kerning=Off
55
56 \noindent{\addjfontfeatures{Kerning=On} アノ ← Kerning=On}
57 }
58
59 \subsection{unicode}
60
61 設定依存:「\char"201C」「\char"010F」%"
62 常に和文:「\ltjjachar"201C」「\ltjjachar"010F」%"
63 常に欧文:「\ltjalchar"201C」「\ltjalchar"010F」%"
64
65 {\tracingall\let\char=\ltjalchar\textquotedblleft}あ\textquotedblleft あ%
66 {\let\char=\ltjjachar\textquotedblleft}あ“あ
67
68 \begin{itemize}
69 \item hoge
70 \begin{itemize}
71 \item hoge\textendash\ltjjachar"2013\ltjalchar"2013
72 \begin{itemize}
73 \item hoge
74 \begin{itemize}
75 \item hoge|\textperiodcentered|\ltjjachar"00B7|\ltjalchar"00B7|・|
76 \end{itemize}
77 \end{itemize}
78 \end{itemize}
79 \end{itemize}
80 \end{document}