From 5bb48cef684db6e67d01064ad957fd6012c4225c Mon Sep 17 00:00:00 2001
From: Khaled Hosny <khaledhosny@eglug.org>
Date: Sat, 16 Jan 2010 22:00:11 +0200
Subject: 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.
---
 luaotfload-fonts.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
cgit v1.2.3