More fvar.swift stuff. I'm going to need a font with an avar table...

This commit is contained in:
Pietro Gagliardi 2017-11-02 10:39:43 -04:00
parent 830753d888
commit 2e5f2c273b
1 changed files with 3 additions and 1 deletions

View File

@ -68,4 +68,6 @@ weightVals.forEach { k, v in
print("\(k) opentype scaled = \(opentypeScaled)")
}
print("")
print("\(CTFontDescriptorCreateMatchingFontDescriptors(CTFontDescriptorCreateCopyWithVariation(matches[0], FourCharCode(2003265652) as CFNumber, CGFloat(weightMax)), Set([kCTFontVariationAttribute as String]) as CFSet))")
print("\(String(describing: CTFontDescriptorCreateMatchingFontDescriptors(CTFontDescriptorCreateCopyWithVariation(matches[0], FourCharCode(2003265652) as CFNumber, CGFloat(weightMax)), Set([kCTFontVariationAttribute as String]) as CFSet)))")
print("")
print("\(CTFontCopyTable(mfont, CTFontTableTag(kCTFontTableAvar), []) != nil)")