From 37eb75164de32f5854c1af4a76bda50fc1f18ee4 Mon Sep 17 00:00:00 2001
From: Philipp Gesang <phg42.2a@gmail.com>
Date: Sun, 14 Jul 2013 12:02:50 +0200
Subject: make font name rewriting optional
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

... but still activated by default

the trouble with rewriting the font name is that it diverges from the
behavior as stated in the Luatex reference. according to chapter 7, the
field ``name`` of the font structure should contain the “metric (file)
name”. by including the complete specification we cater to hacks that
feed ``\fontname`` (which reads the ``name`` field) back into ``\font``
as Xetex does. this appears to work without complications, but formats
other than Latex might not need it. so the best strategy would be to
make it an option and have Fontspec activate this non-standard behavior.
---
 luaotfload.dtx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'luaotfload.dtx')

diff --git a/luaotfload.dtx b/luaotfload.dtx
index d647efb..2344a19 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -2044,6 +2044,8 @@ loadmodule"features.lua"    --- contains what was “font-ltx” and “font-otc
 loadmodule"extralibs.lua"   --- load additional Context libraries
 loadmodule"auxiliary.lua"   --- additionaly high-level functionality (new)
 
+luaotfload.aux.start_rewrite_fontname () --- to be migrated to fontspec
+
 -- vim:tw=71:sw=4:ts=4:expandtab
 
 %    \end{macrocode}
-- 
cgit v1.2.3

