diff options
-rw-r--r-- | luaotfload.dtx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx index 3f31280..c0489e3 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -645,6 +645,15 @@ end --fonts.define.resolvers.file = fonts.define.resolvers.name % \end{macrocode} % +% We override the cleanname function as it outputs garbage for exotic font +% names +% +% \begin{macrocode} +containers.cleanname = function (name) + return (string.gsub(string.lower(name),"[^%w%d\128\255]+","-")) +end +% \end{macrocode} +% % Overriding some defaults set in \context code. % % \begin{macrocode} |