From dc4b739a33f3f5f4932945649a11e42fc1d6e957 Mon Sep 17 00:00:00 2001
From: Elie Roux <elie.roux@telecom-bretagne.eu>
Date: Tue, 16 Apr 2013 15:06:56 +0200
Subject: Make \font\foo=file:xxx more reliable

We use the same function (fonts.names.resolve) for both name and
file specification, as the database search is much better than a simple
filename resolving (it might contain more entries), it's also
easier to spot a problem.
---
 luaotfload.dtx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'luaotfload.dtx')

diff --git a/luaotfload.dtx b/luaotfload.dtx
index 1afcd6e..fa6d709 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -636,7 +636,13 @@ end
 %
 % \subsection{\context override}
 %
-%    Here we override some defaults set in \context code.
+%    We have a unified function for both file and name resolver.
+%
+%    \begin{macrocode}
+fonts.define.resolvers.file = fonts.define.resolvers.name
+%    \end{macrocode}
+%
+%    Overriding some defaults set in \context code.
 %
 %    \begin{macrocode}
 fonts.mode = "node"
-- 
cgit v1.2.3

