--
luatexbase.provides_module({
name = 'luatexja.jfont',
- date = '2018/02/18',
+ date = '2018/06/15',
description = 'Loader for Japanese fonts',
})
end
end
-function luatexja.jfont.define_jfm(t)
+local fastcopy=table.fastcopy
+function luatexja.jfont.define_jfm(to)
+ local t = fastcopy(to)
local real_char -- Does current character class have the 'real' character?
if t.dir~=jfm_dir then
defjfm_res= nil; return
local update_jfm_cache
do
+ local floor = math.floor
+ local function myround(a) return floor(a+0.5) end
local function mult_table(old,scale) -- modified from table.fastcopy
if old then
local new = { }
if type(v) == "table" then
new[k] = mult_table(v,scale)
elseif type(v) == "number" then
- new[k] = round(v*scale)
+ new[k] = myround(v*scale)
else
new[k] = v
end
luatexja.jfont.font_metric_table = font_metric_table
luatexja.jfont.find_char_class = find_char_class
+luatexja.jfont.update_jfm_cache = update_jfm_cache