diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-04-20 14:28:25 +0200 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-04-20 14:28:25 +0200 |
commit | 267997e49570d3d08b4de3eb6c9c5394ec1d2f97 (patch) | |
tree | bf2b59edd869b16f9b848892c9928ea693bb5613 | |
parent | 5c273b8ac66cacbd8e68a272b0317bac442e1958 (diff) | |
download | luaotfload-267997e49570d3d08b4de3eb6c9c5394ec1d2f97.tar.gz |
Making the file method resolve fonts with the database
-rw-r--r-- | luaotfload.dtx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx index 22afb45..595a9fa 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -1160,6 +1160,20 @@ loadmodule"font-ltx.lua" --- new in 2.0, added 2011 % \end{macrocode} % % +% This hack makes fonts called with file method found by fonts.names.resove +% instead of just trying to find them with kpse. It is necessary in case +% of fonts that are not accessible by kpse but present in the database, a +% quite common case under Linux. +% +% \begin{macrocode} + +fonts.definers.resolvers.file = function (specification) + specification.name = fonts.names.resolve('', '', specification) +end + +% \end{macrocode} +% +% % We create a callback for patching fonts on the fly, to be used by other % packages. % It initially contains the empty function that we are going to override |