I used the font Futura-Demi.otffor a while.
In the code below, I can confirm that this file contains several fonts.
for fname in UIFont.familyNames {
for name in UIFont.fontNames(forFamilyName: fname) {
print(name)
}
}
Font family Futuraand contains fonts as shown below:
Futura-CondensedExtraBold
Futura-Dem
Futura-Medium
Futura-Bold
Futura-CondensedMedium
Futura-MediumItalic
I used the Futura-Demfont with UIFont(name: "Futura-Dem", size: 21)no problem. However, after the release of iOS 11, I can no longer use this font. All fonts Futura-Demare replaced with Futura-Mediumeven in the application, which is already in the App Store.
I checked that the font loaded UIFont(name: "Futura-Dem", size: 21)is a font Futura-Medium, and I also found that I can use the font Futura-Demwith
let des = UIFontDescriptor(name: "Futura-Dem", size: 21)
let font = UIFont(descriptor: des, size: 21)
Futura-Dem , , UIFont(name: "Futura-Dem", size: 21), .