Bug 1294448 - Fix handling of platform ID in gfxFontUtils::ReadNames, so that fallback to Windows-platform names on Mac works as intended. r=jrmuizel

This commit is contained in:
Jonathan Kew 2016-08-11 20:08:42 +01:00
parent 54158acc9a
commit 55b297ca39

View File

@ -1503,7 +1503,7 @@ gfxFontUtils::ReadNames(const char *aNameData, uint32_t aDataLen,
// skip over unwanted platform data
platformID = nameRecord->platformID;
if (aPlatformID != PLATFORM_ALL
&& uint32_t(nameRecord->platformID) != PLATFORM_ID)
&& platformID != uint32_t(aPlatformID))
continue;
// skip over unwanted languages