summaryrefslogtreecommitdiff
path: root/luaotfload-auxiliary.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-06-02 03:19:19 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-06-02 03:19:19 +0200
commit9cdf846537280dc9661b1ed88a58eb763b237d1d (patch)
tree5d625ac78e0d6b512f2199b4b130352b07739df9 /luaotfload-auxiliary.lua
parent1c05b861741add6fbc4a3185ad49b812e4f5771e (diff)
downloadluaotfload-9cdf846537280dc9661b1ed88a58eb763b237d1d.tar.gz
replace tfmdata.name with the quoted spec
Diffstat (limited to 'luaotfload-auxiliary.lua')
-rw-r--r--luaotfload-auxiliary.lua11
1 files changed, 11 insertions, 0 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