summaryrefslogtreecommitdiff
path: root/otfl-font-nms.lua
diff options
context:
space:
mode:
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r--otfl-font-nms.lua9
1 files changed, 4 insertions, 5 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index 92d0243..65d7f59 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -1,8 +1,3 @@
--- This lua script is made to generate the font database for LuaTeX, in order
--- for it to be able to load a font according to its name, like XeTeX does.
---
--- It is part of the luaotfload bundle, see luaotfload's README for legal
--- notice.
if not modules then modules = { } end modules ['font-nms'] = {
version = 1.002,
comment = "companion to luaotfload.lua",
@@ -174,6 +169,8 @@ else
system = 'unix' -- ?
end
+fonts.system = system
+
-- path normalization:
-- - a\b\c -> a/b/c
-- - a/../b -> b
@@ -190,6 +187,8 @@ local function path_normalize(path)
return path
end
+fonts.path_normalize = path_normalize
+
-- this function scans a directory and populates the list of fonts
-- with all the fonts it finds.
-- - dirname is the name of the directory to scan