[PATCH] dwrite: Suppress noisy message when parsing name records

Nikolay Sivov nsivov at codeweavers.com
Sun Feb 14 12:54:37 CST 2016


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---

Some fonts have language values as Windows LCID codes (like 1041 for Japanese),
for records with Mac platform id.

 dlls/dwrite/opentype.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/dwrite/opentype.c b/dlls/dwrite/opentype.c
index 7d59bf8..7fb1749 100644
--- a/dlls/dwrite/opentype.c
+++ b/dlls/dwrite/opentype.c
@@ -1367,7 +1367,7 @@ static void get_name_record_locale(enum OPENTYPE_PLATFORM_ID platform, USHORT la
         const char *locale_name = NULL;
 
         if (lang_id > TT_NAME_MAC_LANGID_AZER_ROMAN)
-            ERR("invalid mac lang id %d\n", lang_id);
+            WARN("invalid mac lang id %d\n", lang_id);
         else if (!name_mac_langid_to_locale[lang_id][0])
             FIXME("failed to map mac lang id %d to locale name\n", lang_id);
         else
-- 
2.7.0




More information about the wine-patches mailing list