OSDN Git Service

luatexja-fontspec-26h
[luatex-ja/luatexja.git] / src / ltj-jfont.lua
index 61ddc6c..5f1ddf6 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
@@ -342,6 +344,9 @@ do
          t.shared.features[vrt2_exist and 'vrt2' or 'vert'] = true
       end
 
+      texio.write_nl('term and log', 
+        'JFNT\t' .. identifiers[fn].name .. '\t' .. identifiers[fn].size .. '\t' .. fn, '')
+
       fmtable = luatexbase.call_callback("luatexja.define_jfont", fmtable, fn)
       font_metric_table[fn]=fmtable
       tex.sprint(cat_lp, global_flag, '\\protected\\expandafter\\def\\csname ',
@@ -417,7 +422,7 @@ do
            .. ((l==':' or l==';') and '' or ';')
            .. 'jfm=' .. jfm_file_name
         if jfm_var~='' then
-           name = name .. 'jfmvar=' .. jfm_var
+           name = name .. ';jfmvar=' .. jfm_var
         end
       end
       for x in gmatch (name, "[:;]([+%%-]?)ltjks") do