From 1b7441254c9a43adda43ffcf12d7add0f1df0191 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Fri, 17 Feb 2023 11:18:50 -0500 Subject: [PATCH] font/sfnt: set type for all NameID constants Previously only NameIDCopyright had NameID type, the rest were untyped integer constants. Change-Id: I714308b4eea78ebc65c2f7a10f7316c17cfd403c Reviewed-on: https://go-review.googlesource.com/c/image/+/468938 Reviewed-by: Dmitri Shuralyov Auto-Submit: Dmitri Shuralyov TryBot-Result: Gopher Robot Run-TryBot: Dmitri Shuralyov Reviewed-by: Michael Knyszek --- font/sfnt/sfnt.go | 48 +++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/font/sfnt/sfnt.go b/font/sfnt/sfnt.go index d693886..8d0dba7 100644 --- a/font/sfnt/sfnt.go +++ b/font/sfnt/sfnt.go @@ -153,30 +153,30 @@ type NameID uint16 const ( NameIDCopyright NameID = 0 - NameIDFamily = 1 - NameIDSubfamily = 2 - NameIDUniqueIdentifier = 3 - NameIDFull = 4 - NameIDVersion = 5 - NameIDPostScript = 6 - NameIDTrademark = 7 - NameIDManufacturer = 8 - NameIDDesigner = 9 - NameIDDescription = 10 - NameIDVendorURL = 11 - NameIDDesignerURL = 12 - NameIDLicense = 13 - NameIDLicenseURL = 14 - NameIDTypographicFamily = 16 - NameIDTypographicSubfamily = 17 - NameIDCompatibleFull = 18 - NameIDSampleText = 19 - NameIDPostScriptCID = 20 - NameIDWWSFamily = 21 - NameIDWWSSubfamily = 22 - NameIDLightBackgroundPalette = 23 - NameIDDarkBackgroundPalette = 24 - NameIDVariationsPostScriptPrefix = 25 + NameIDFamily NameID = 1 + NameIDSubfamily NameID = 2 + NameIDUniqueIdentifier NameID = 3 + NameIDFull NameID = 4 + NameIDVersion NameID = 5 + NameIDPostScript NameID = 6 + NameIDTrademark NameID = 7 + NameIDManufacturer NameID = 8 + NameIDDesigner NameID = 9 + NameIDDescription NameID = 10 + NameIDVendorURL NameID = 11 + NameIDDesignerURL NameID = 12 + NameIDLicense NameID = 13 + NameIDLicenseURL NameID = 14 + NameIDTypographicFamily NameID = 16 + NameIDTypographicSubfamily NameID = 17 + NameIDCompatibleFull NameID = 18 + NameIDSampleText NameID = 19 + NameIDPostScriptCID NameID = 20 + NameIDWWSFamily NameID = 21 + NameIDWWSSubfamily NameID = 22 + NameIDLightBackgroundPalette NameID = 23 + NameIDDarkBackgroundPalette NameID = 24 + NameIDVariationsPostScriptPrefix NameID = 25 ) // Units are an integral number of abstract, scalable "font units". The em