From 1c05b861741add6fbc4a3185ad49b812e4f5771e Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 2 Jun 2013 02:40:39 +0200 Subject: make compatibility hacks optional --- luaotfload-auxiliary.lua | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'luaotfload-auxiliary.lua') diff --git a/luaotfload-auxiliary.lua b/luaotfload-auxiliary.lua index bb1e8f9..5e5b121 100644 --- a/luaotfload-auxiliary.lua +++ b/luaotfload-auxiliary.lua @@ -42,6 +42,10 @@ local tablecopy = table.copy --- font patches ----------------------------------------------------------------------- +--- 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 +105,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 +125,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. -- cgit v1.2.3