summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2010-01-16 22:00:11 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2010-01-16 22:00:11 +0200
commit5bb48cef684db6e67d01064ad957fd6012c4225c (patch)
treeec97327c56dc1e76150d9011a338d6119d4e5630
parent845f403084dd29203ed6e66701a13708f7be365b (diff)
downloadluaotfload-5bb48cef684db6e67d01064ad957fd6012c4225c.tar.gz
Prefer names.prefmodifiers over names.subfamily
This fixes style checking for many correctly named fonts, but breaks crappy fonts like LM and MnSymbol, both aren't a priority for me.
-rw-r--r--luaotfload-fonts.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/luaotfload-fonts.lua b/luaotfload-fonts.lua
index 809f884..36cd068 100644
--- a/luaotfload-fonts.lua
+++ b/luaotfload-fonts.lua
@@ -45,7 +45,7 @@ function fontloader.fullinfo(...)
if v.lang == "English (US)" then
n.name = v.names.compatfull or v.names.fullname
n.family = v.names.preffamilyname or v.names.family
- n.style = v.names.subfamily or v.names.prefmodifiers
+ n.style = v.names.prefmodifiers or v.names.subfamily
end
end
end