Change composition of version record of the name table to include build (when available)
This commit is contained in:
parent
1b5054a259
commit
7636ef712e
1 changed files with 3 additions and 2 deletions
|
|
@ -73,11 +73,12 @@ class InstanceNames:
|
||||||
f.info.openTypeNameManufacturerURL = self.foundryURL
|
f.info.openTypeNameManufacturerURL = self.foundryURL
|
||||||
f.info.openTypeNameLicense = self.license
|
f.info.openTypeNameLicense = self.license
|
||||||
f.info.openTypeNameLicenseURL = self.licenseURL
|
f.info.openTypeNameLicenseURL = self.licenseURL
|
||||||
f.info.openTypeNameVersion = "Version %i.%i" %(version, versionMinor)
|
|
||||||
|
|
||||||
if self.build is not None and len(self.build):
|
if self.build is not None and len(self.build):
|
||||||
f.info.openTypeNameUniqueID = "%s:%s:%s" %(self.fullname, self.build, self.year)
|
f.info.openTypeNameVersion = "%i.%i;%s" %(version, versionMinor, self.build)
|
||||||
|
f.info.openTypeNameUniqueID = "%s:%s:%s" %(self.fullname, self.year, self.build)
|
||||||
else:
|
else:
|
||||||
|
f.info.openTypeNameVersion = "%i.%i" %(version, versionMinor)
|
||||||
f.info.openTypeNameUniqueID = "%s:%s" %(self.fullname, self.year)
|
f.info.openTypeNameUniqueID = "%s:%s" %(self.fullname, self.year)
|
||||||
|
|
||||||
# f.info.openTypeNameDescription = ""
|
# f.info.openTypeNameDescription = ""
|
||||||
|
|
|
||||||
Reference in a new issue