ソースコードの管理場所
修订版 | 8a2a31e998f3c7d47c3f46b23a543eff191cc34e (tree) |
---|---|
时间 | 2016-04-23 14:02:26 |
作者 | Hironori Kitagawa <h_kitagawa2001@yaho...> |
Commiter | Hironori Kitagawa |
ltj-jfont.lua: use luatexbase.remove_from_callback to get fontloader
@@ -367,18 +367,18 @@ do | ||
367 | 367 | end |
368 | 368 | |
369 | 369 | -- define_font callback |
370 | - local otfl_fdr = fonts.definers.read | |
370 | + local otfl_fdr | |
371 | 371 | local ltjr_font_callback = ltjr.font_callback |
372 | 372 | function luatexja.font_callback(name, size, id) |
373 | 373 | local new_name = is_def_jfont and extract_metric(name) or name |
374 | 374 | is_def_jfont = false |
375 | - --local res = otfl_fdr(new_name, size, id) | |
376 | 375 | local res = ltjr_font_callback(new_name, size, id, otfl_fdr) |
377 | 376 | luatexbase.call_callback('luatexja.define_font', res, new_name, size, id) |
378 | 377 | -- this callback processes variation selector, so we execute it always |
379 | 378 | return res |
380 | 379 | end |
381 | 380 | luatexbase.create_callback('luatexja.define_font', 'simple', function (n) return n end) |
381 | + otfl_fdr= luatexbase.remove_from_callback('define_font', 'luaotfload.define_font') | |
382 | 382 | luatexbase.add_to_callback('define_font',luatexja.font_callback,"luatexja.font_callback", 1) |
383 | 383 | end |
384 | 384 |