Posts

Post marked as solved
5 Replies
3.7k Views
I have a label in a SpriteKit appvar speedLabel: SKLabelNode = SKLabelNode()And when I try to assign it a Font like so:speedLabel.fontName = UIFont.preferredFont(forTextStyle: .body).fontNameIn iOS 11.0-12.x, that returns ".SFUIText" and gives the label the proper san-serif system font.In iOS 13.0, it returns ".SFUI-Regular" and shows up as some serifed, maybe Times New Roman font.I remember having issues with SpriteKit Label Nodes and fonts in the past. If you assigned it an invalid font, it would default to this serifed font.Anyone have any ideas how to fix this?
Posted
by DMThomas.
Last updated
.