• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

ソースコードの管理場所


Commit MetaInfo

Revision996dc91c8ce7f8adb2c4bb2b3c57427a47ff978a (tree)
Time2014-10-30 18:54:55
AuthorHironori Kitagawa <h_kitagawa2001@yaho...>
CommiterHironori Kitagawa

Log Message

Bugfix of the previous commit.

Change Summary

Incremental Difference

--- a/src/ltj-jfont.lua
+++ b/src/ltj-jfont.lua
@@ -745,14 +745,12 @@ do
745745 local checksum = file.checksum
746746
747747 local function prepare_extra_data_base(id)
748- if not id or not id.resources then return end
748+ if not id then return end
749749 local bname = file.nameonly(id.filename or '')
750- print(bname, font_extra_basename[bname])
751- if bname and not font_extra_basename[bname] then
750+ if not font_extra_basename[bname] then
752751 -- if the cache is present, read it
753752 local newsum = checksum(id.filename) -- MD5 checksum of the fontfile
754753 local v = "extra_" .. string.lower(file.nameonly(id.filename))
755- print(v)
756754 local dat = ltjb.load_cache(
757755 v,
758756 function (t) return (t.version~=cache_ver) or (t.chksum~=newsum) end
@@ -767,7 +765,7 @@ do
767765 font_extra_basename[bname] = dat or {}
768766 ltjb.save_cache( v,
769767 {
770- chksum = checksum(fname),
768+ chksum = checksum(id.filename),
771769 version = cache_ver,
772770 dat,
773771 })
@@ -776,7 +774,7 @@ do
776774 end
777775 end
778776 local function prepare_extra_data_font(id, res)
779- if type(res)=='table' and res.filename then
777+ if type(res)=='table' and res.shared then
780778 font_extra_info[id] = font_extra_basename[file.nameonly(res.filename)]
781779 end
782780 end
@@ -784,8 +782,8 @@ do
784782 'luaotfload.patch_font',
785783 function (tfmdata)
786784 -- these function is executed one time per one fontfile
787- local bname = prepare_extra_data_base(tfmdata)
788- if bname then supply_vkern_table(tfmdata, bname) end
785+ local bname = prepare_extra_data_base(tfmdata)
786+ if bname then supply_vkern_table(tfmdata, bname) end
789787 end,
790788 'ltj.prepare_extra_data', 1)
791789 luatexbase.add_to_callback(
--- a/src/ltj-rmlgbm.lua
+++ b/src/ltj-rmlgbm.lua
@@ -336,7 +336,9 @@ local function font_callback(name, size, id, fallback)
336336 return mk_rml(basename, size, id)
337337 else
338338 local tfmdata=fallback(name, size, id)
339- luatexbase.call_callback ("luaotfload.patch_font", tfmdata, name)
339+ if type (tfmdata) == "table" and tfmdata.shared then
340+ luatexbase.call_callback("luaotfload.patch_font", tfmdata, name)
341+ end
340342 return tfmdata
341343 end
342344 end