summaryrefslogtreecommitdiff
path: root/macros/luatex/generic/luatexja/doc/jfm-testf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'macros/luatex/generic/luatexja/doc/jfm-testf.lua')
-rw-r--r--macros/luatex/generic/luatexja/doc/jfm-testf.lua34
1 files changed, 34 insertions, 0 deletions
diff --git a/macros/luatex/generic/luatexja/doc/jfm-testf.lua b/macros/luatex/generic/luatexja/doc/jfm-testf.lua
new file mode 100644
index 0000000000..36185344fd
--- /dev/null
+++ b/macros/luatex/generic/luatexja/doc/jfm-testf.lua
@@ -0,0 +1,34 @@
+local t = luatexja.jfont.jfm_feature
+myjfm = t
+local k = (type(t and t.kern)=='string') and tonumber(t.kern) or 0.0
+local d = (type(t and t.down)=='string') and tonumber(t.down) or 0.0
+local t2= {
+ dir = 'yoko',
+ zw = 1.0, zh = 1.0,
+ [0] = {
+ align = 'left', left = 0.0, down = 0.0,
+ width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
+ kern = { [1] = k }
+ },
+ [1] = {
+ chars = { '漢', '字', },
+ align = 'left', left = 0.0, down = d,
+ width = 0.5, height = 0.88, depth = 0.12, italic=0.0,
+ kern = { [0] = 0.5, [2] = 0.5, [1000] = 0.5 }
+ },
+ [2] = {
+ chars = { 'イ' },
+ align = 'left', left = 0.0, down = 0.0,
+ width = 1.0, height = 0.88, depth = 0.12, italic=0.0,
+ kern = { [1] = k }
+ },
+ [1000] = {
+ chars = { 'boxbdd' },
+ },
+}
+if t and t.hira then
+ for i=0x3040,0x309F do
+ table.insert(t2[1].chars, i)
+ end
+end
+luatexja.jfont.define_jfm (t2)