diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-06-02 10:08:23 -0700 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-06-02 10:08:23 -0700 |
commit | 12375b6291320ecd8e962a62e28ec70f2b205192 (patch) | |
tree | 841ca2c9bda3f76971877766a3b300f5d2a5821b /luaotfload-auxiliary.lua | |
parent | b1379efc10e86a907874104d7134b4e3f0ef1e1d (diff) | |
parent | 5cd039c3101fd6ca751244fb24b2ec85bc15b213 (diff) | |
download | luaotfload-12375b6291320ecd8e962a62e28ec70f2b205192.tar.gz |
Merge pull request #96 from phi-gamma/master
db rewrite + fixes (``texmf-fonts`` branch)
Diffstat (limited to 'luaotfload-auxiliary.lua')
-rw-r--r-- | luaotfload-auxiliary.lua | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/luaotfload-auxiliary.lua b/luaotfload-auxiliary.lua index bb1e8f9..3597683 100644 --- a/luaotfload-auxiliary.lua +++ b/luaotfload-auxiliary.lua @@ -42,6 +42,21 @@ 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 + --[[doc-- The font object (tfmdata) structure has changed since version 1.x, so @@ -101,13 +116,10 @@ local add_fontdata_fallbacks = function (fontdata) return fontdata end ---if config.luaotfload.compatibility == true then -if true then - luatexbase.add_to_callback( - "luaotfload.patch_font", - add_fontdata_fallbacks, - "luaotfload.fontdata_fallbacks") -end +luatexbase.add_to_callback( + "luaotfload.patch_font", + add_fontdata_fallbacks, + "luaotfload.fontdata_fallbacks") --[[doc-- @@ -124,6 +136,8 @@ font.getfont() since Hans made it a harmless wrapper [1].) fonts.identifiers = fonts.hashes.identifiers fonts.ids = fonts.hashes.identifiers +end + --[[doc-- This sets two dimensions apparently relied upon by the unicode-math package. |