From e259c188c85d58e1263a4764399b00ebc1412655 Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Fri, 4 Sep 2015 15:41:45 -0400 Subject: [PATCH] Make NameID constants explicit. --- truetype/truetype.go | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/truetype/truetype.go b/truetype/truetype.go index 68a9dcd..cc1286b 100644 --- a/truetype/truetype.go +++ b/truetype/truetype.go @@ -30,26 +30,25 @@ type Index uint16 type NameID uint16 const ( - NameIDCopyright NameID = iota - NameIDFontFamily - NameIDFontSubfamily - NameIDUniqueSubfamilyID - NameIDFontFullName - NameIDNameTableVersion - NameIDPostscriptName - NameIDTrademarkNotice - NameIDManufacturerName - NameIDDesignerName - NameIDFontDescription - NameIDFontVendorURL - NameIDFontDesignerURL - NameIDFontLicense - NameIDFontLicenseURL - NameIDReserved - NameIDPreferredFamily - NameIDPreferredSubfamily - NameIDCompatibleName - NameIDSampleText + NameIDCopyright NameID = 0 + NameIDFontFamily = 1 + NameIDFontSubfamily = 2 + NameIDUniqueSubfamilyID = 3 + NameIDFontFullName = 4 + NameIDNameTableVersion = 5 + NameIDPostscriptName = 6 + NameIDTrademarkNotice = 7 + NameIDManufacturerName = 8 + NameIDDesignerName = 9 + NameIDFontDescription = 10 + NameIDFontVendorURL = 11 + NameIDFontDesignerURL = 12 + NameIDFontLicense = 13 + NameIDFontLicenseURL = 14 + NameIDPreferredFamily = 16 + NameIDPreferredSubfamily = 17 + NameIDCompatibleName = 18 + NameIDSampleText = 19 ) // A Bounds holds the co-ordinate range of one or more glyphs.