不要在标签中显示六边形字体 IOS 如何< 13 swift 4



我不明白为什么标签不显示我的六边形。模拟器IOS<13未显示,IOS>13都正常。 我尝试将字体更改为系统,但这无济于事。那我的代码。

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
}()

摄影模拟器 IOS 12.2 和 IOS 13.3 在此处输入图像描述

谢谢你的帮助。

找到答案。找到一种支持六边形的字体 - DejaVuSans。将字体添加到项目

相关内容

最新更新