From 9cdf846537280dc9661b1ed88a58eb763b237d1d Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 2 Jun 2013 03:19:19 +0200 Subject: replace tfmdata.name with the quoted spec --- luaotfload-auxiliary.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'luaotfload-auxiliary.lua') 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 -- cgit v1.2.3