diff options
-rw-r--r-- | luaotfload-auxiliary.lua | 11 | ||||
-rw-r--r-- | luaotfload-database.lua | 3 |
2 files changed, 12 insertions, 2 deletions
diff --git a/luaotfload-auxiliary.lua b/luaotfload-auxiliary.lua index 5e5b121..3597683 100644 --- a/luaotfload-auxiliary.lua +++ b/luaotfload-auxiliary.lua @@ -42,6 +42,17 @@ local tablecopy = table.copy --- font patches ----------------------------------------------------------------------- +--- https://github.com/khaledhosny/luaotfload/issues/54 + +local rewrite_fontname = function (tfmdata, specification) + tfmdata.name = [["]] .. specification .. [["]] +end + +luatexbase.add_to_callback( + "luaotfload.patch_font", + rewrite_fontname, + "luaotfload.rewrite_fontname") + --- as of 2.3 the compatibility hacks for TL 2013 are made optional if config.luaotfload.compatibility == true then diff --git a/luaotfload-database.lua b/luaotfload-database.lua index 22de3fa..b9695ad 100644 --- a/luaotfload-database.lua +++ b/luaotfload-database.lua @@ -788,14 +788,13 @@ resolve = function (_,_,specification) -- the 1st two parameters are used by Con return specification.name, false, false end --- resolve() ---- dummy required by luatex-fonts (cf. luatex-fonts-syn.lua) - resolve_fullpath = function (fontname, ext) --- getfilename() if not fonts_loaded then names.data = load_names() end local filenames = names.data.filenames local idx = filenames.base[fontname] + or filenames.bare[fontname] if idx then return filenames.full[idx] end |