summaryrefslogtreecommitdiff
path: root/otfl-font-nms.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-25 09:31:25 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-25 09:31:25 -0700
commit31530badb2681ff3423fe31f5eccf3d05fab1956 (patch)
treee8b985cc7e5b747cc432f4d27dbaa13d7de01d04 /otfl-font-nms.lua
parent7ef916abd7e8131ee0886c8134431ccd73c6c92a (diff)
parent8e0167cb44f0b6551720c9c24ac34891b3fc9042 (diff)
downloadluaotfload-31530badb2681ff3423fe31f5eccf3d05fab1956.tar.gz
Merge pull request #10 from eroux/texlive2011
Texlive2011
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r--otfl-font-nms.lua13
1 files changed, 8 insertions, 5 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index 84cdf6e..e653d13 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -154,6 +154,11 @@ function names.resolve(specification)
elseif subfamily == "regular" or
table.contains(synonyms.regular, subfamily) then
found.fallback = face
+ elseif name == fullname then
+ --- guard for Libertine Mono which has
+ --- subtype == “mono”
+ found[1] = face
+ break
end
end
if name == fullname
@@ -505,12 +510,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)
@@ -649,9 +654,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