From 52fdfd4dac7a6564fbcdd96524097ecbb4261a55 Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Thu, 3 Sep 2015 05:11:16 -0400 Subject: [PATCH] Removed parentheses in parseName conditional. --- truetype/truetype.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/truetype/truetype.go b/truetype/truetype.go index 9d8ae68..a078528 100644 --- a/truetype/truetype.go +++ b/truetype/truetype.go @@ -356,9 +356,9 @@ func (f *Font) parseName() error { foundAppleRoman[nameID-1] = offset } case PLATFORM_MICROSOFT: - if foundMicrosoft[nameID-1] == 0 || (languageID&0x3FF) == 0x009 { // Prefer Microsoft fonts in English. + if foundMicrosoft[nameID-1] == 0 || languageID&0x3FF == 0x009 { // Prefer Microsoft fonts in English. if encodingID == MICROSOFT_SYMBOL_CS || encodingID == MICROSOFT_UNICODE_CS || encodingID == MICROSOFT_UCS_4 { - foundMicrosoftEnglish = (languageID & 0x3FF) == 9 + foundMicrosoftEnglish = languageID&0x3FF == 9 foundMicrosoft[nameID-1] = offset } }