我不明白为什么标签不显示我的八卦。模拟器IOS < 13未显示,IOS > 13全部正常。我尝试将字体更改为system,但没有帮助。那是我的代码。
let hierogliph: UILabel = {
let hierogliph = UILabel()
hierogliph.text = "䷄"
hierogliph.textColor = #colorLiteral(red: 0.2129859924, green: 0.161139518, blue: 0.1228835955, alpha: 1)
hierogliph.minimumScaleFactor = 0.5
hierogliph.adjustsFontSizeToFitWidth = true
hierogliph.textAlignment = .center
hierogliph.font = UIFont(name: "IM_FELL_Double_Pica_SC", size: 100)
hierogliph.translatesAutoresizingMaskIntoConstraints = false
return hierogliph
}()
Foto模拟器IOS 12.2和IOS 13.3 enter image description here
谢谢你的帮助。
发布于 2020-01-30 10:21:04
找到答案了。找到支持hexagram - DejaVuSans的字体。将字体添加到项目
https://stackoverflow.com/questions/59932717
复制相似问题