From 2e5f2c273b0b69629fc85f185797b970c8504bab Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 2 Nov 2017 10:39:43 -0400 Subject: [PATCH] More fvar.swift stuff. I'm going to need a font with an avar table... --- doc/export/fvar.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/export/fvar.swift b/doc/export/fvar.swift index 30617e45..3d81c9d8 100644 --- a/doc/export/fvar.swift +++ b/doc/export/fvar.swift @@ -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)")