summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2013-04-16 15:06:56 +0200
committerElie Roux <elie.roux@telecom-bretagne.eu>2013-04-16 15:06:56 +0200
commitdc4b739a33f3f5f4932945649a11e42fc1d6e957 (patch)
tree71a7133d57eeafabb7ca6dbd3e2f63c6e330106b
parent3771bb1479430718ef650f2194a34758ededc132 (diff)
downloadluaotfload-dc4b739a33f3f5f4932945649a11e42fc1d6e957.tar.gz
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.
-rw-r--r--luaotfload.dtx8
1 files changed, 7 insertions, 1 deletions
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"