• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

ソースコードの管理場所


Commit MetaInfo

修订版8a2a31e998f3c7d47c3f46b23a543eff191cc34e (tree)
时间2016-04-23 14:02:26
作者Hironori Kitagawa <h_kitagawa2001@yaho...>
CommiterHironori Kitagawa

Log Message

ltj-jfont.lua: use luatexbase.remove_from_callback to get fontloader

更改概述

差异

--- a/src/ltj-jfont.lua
+++ b/src/ltj-jfont.lua
@@ -367,18 +367,18 @@ do
367367 end
368368
369369 -- define_font callback
370- local otfl_fdr = fonts.definers.read
370+ local otfl_fdr
371371 local ltjr_font_callback = ltjr.font_callback
372372 function luatexja.font_callback(name, size, id)
373373 local new_name = is_def_jfont and extract_metric(name) or name
374374 is_def_jfont = false
375- --local res = otfl_fdr(new_name, size, id)
376375 local res = ltjr_font_callback(new_name, size, id, otfl_fdr)
377376 luatexbase.call_callback('luatexja.define_font', res, new_name, size, id)
378377 -- this callback processes variation selector, so we execute it always
379378 return res
380379 end
381380 luatexbase.create_callback('luatexja.define_font', 'simple', function (n) return n end)
381+ otfl_fdr= luatexbase.remove_from_callback('define_font', 'luaotfload.define_font')
382382 luatexbase.add_to_callback('define_font',luatexja.font_callback,"luatexja.font_callback", 1)
383383 end
384384