From 5478d8cf8911be06c5ab25ba6a07c85119da953b Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Thu, 25 Apr 2013 11:09:50 +0200 Subject: Fixing a bug with Libertine Mono (phi-gamma) See tex.stackexchange.com/questions/110566/libertine-mono-and-lualatex --- otfl-font-nms.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'otfl-font-nms.lua') diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 50febab..a75e4e6 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 else if name == fullname -- cgit v1.2.3 From 2f972d63cd1b1671076aa1fdfba05aadd6b67f5c Mon Sep 17 00:00:00 2001 From: Elie Roux Date: Thu, 25 Apr 2013 18:08:58 +0200 Subject: Closing Issue #11 --- otfl-font-nms.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'otfl-font-nms.lua') 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 -- cgit v1.2.3