diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-04-25 18:08:58 +0200 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2013-04-25 18:08:58 +0200 |
commit | 2f972d63cd1b1671076aa1fdfba05aadd6b67f5c (patch) | |
tree | 63269b23a8b170fcc78b4b119ea9453613be795a | |
parent | 6e65f027e185854a18375892bea2c76a84fa42ca (diff) | |
download | luaotfload-2f972d63cd1b1671076aa1fdfba05aadd6b67f5c.tar.gz |
Closing Issue #11
-rw-r--r-- | otfl-font-nms.lua | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index a75e4e6..a5cdbb1 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -515,12 +515,12 @@ end - if OSFONTDIR is set (which is the case under windows by default but not on the other OSs), it scans it at the same time as the texmf tree, in the scan_texmf_fonts. - - if not: + - in addition: - under Windows and Mac OSX, we take a look at some hardcoded directories - under Unix, we read /etc/fonts/fonts.conf and read the directories in it This means that if you have fonts in fancy directories, you need to set them - in OSFONTDIR. + in OSFONTDIR if they cannot be found by fontconfig. ]] local function read_fonts_conf(path, results, passed_paths) @@ -659,9 +659,7 @@ local function update_names(fontnames, force) local newfontnames = fontnames_init() read_blacklist() scan_texmf_fonts(fontnames, newfontnames) - if expandpath("$OSFONTDIR"):is_empty() then - scan_os_fonts(fontnames, newfontnames) - end + scan_os_fonts(fontnames, newfontnames) return newfontnames end |