OSDN Git Service

Updated Figure 2 in the manual.
[luatex-ja/luatexja.git] / test / test12-ltjarticle.tex
1 %#!lualatex
2 \documentclass{ltjarticle}
3 \usepackage[margin=20mm]{geometry}
4 \begin{document}
5 \noindent 漢字漢字ちょっと\textgt{チェック}
6
7 「漢字←全角二分下がり?\\
8 「あいうえお」\textgt{「かきくけこ」}{\Large 「}
9
10 次ページ以下の例は「\texttt{min10}フォントについて」(乙部厳己)中のp.~8から拝借.
11 \def\g#1#2#3{\leavevmode\vbox{\hsize=100pt%
12 \hrule height 1pt depth 0pt
13 \vskip#3pt\hbox{\vrule width 40pt height 0.2pt depth 0.2pt\kern-40pt
14 \jfont\e=file:#1:jfm=#2 at 20pt\e あいう◆漢}\vskip-#3pt
15 \hrule height 0pt depth 1pt}: #1, jfm=#2, yjabaselineshift=#3pt\par\bigskip}
16
17 \newpage
18 \paragraph{valign.luaなし}\
19
20 \g{KozGoPr6N-Medium.otf}{ujis}{0}
21 \g{KozGoPr6N-Medium.otf}{jis}{0.7563636}
22 \g{KozGoPr6N-Medium.otf}{jis}{0}
23 \g{ipaexg.ttf}{ujis}{0}
24 \g{ipaexg.ttf}{jis}{0.7563636}
25 \g{ipaexg.ttf}{jis}{0}
26 \g{hgrgm.ttc}{ujis}{0}
27 \g{hgrgm.ttc}{jis}{0}
28 \g{hgrgm.ttc}{jis}{0.7563636}
29
30 \g{KozGoPr6N-Medium.otf}{test2}{0}
31 \g{ipaexg.ttf}{test2}{0}
32 \g{hgrgm.ttc}{test2}{0}
33
34 \newpage
35 \directlua{dofile('valign.lua')}
36 \paragraph{valign.luaあり}\ 
37
38 \g{KozGoPr6N-Medium.otf}{ujis}{0}
39 \g{KozGoPr6N-Medium.otf}{jis}{0.7563636}
40 \g{KozGoPr6N-Medium.otf}{jis}{0}
41 \g{ipaexg.ttf}{ujis}{0}
42 \g{ipaexg.ttf}{jis}{0.7563636}
43 \g{ipaexg.ttf}{jis}{0}
44 \g{hgrgm.ttc}{ujis}{0}
45 \g{hgrgm.ttc}{jis}{0}
46 \g{hgrgm.ttc}{jis}{0.7563636}
47
48 \g{KozGoPr6N-Medium.otf}{test2}{0}
49 \g{ipaexg.ttf}{test2}{0}
50 \g{hgrgm.ttc}{test2}{0}
51 \end{document}