OSDN Git Service

lltjp-unicode-math.sty: fix \lfloor etc. were typeset in Japanese font
[luatex-ja/luatexja.git] / src / ltj-jfont.lua
index a4aa4cd..ad29ad4 100644 (file)
@@ -55,7 +55,9 @@ local function norm_val(a)
    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
@@ -1188,3 +1190,4 @@ luatexja.jfont.metrics = metrics
 luatexja.jfont.font_metric_table = font_metric_table
 luatexja.jfont.find_char_class = find_char_class
 
+luatexja.jfont.update_jfm_cache = update_jfm_cache