diff options
-rw-r--r-- | otfl-font-nms.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 538c6b0..6793830 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -669,7 +669,11 @@ local function get_os_dirs() local windir = os.getenv("WINDIR") return { file.join(windir, 'Fonts') } else - return read_fonts_conf("/etc/fonts/fonts.conf", {}) + for _,p in next, {"/usr/local/etc/fonts/fonts.conf", "/etc/fonts/fonts.conf"} do + if lfs.isfile(p) then + return read_fonts_conf("/etc/fonts/fonts.conf", {}) + end + end end end |