summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx9
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}