2 Replies
      Latest reply on Sep 12, 2019 12:08 PM by DMThomas
      DMThomas Level 1 Level 1 (0 points)

        I have a label in a SpriteKit app

         

        var speedLabel: SKLabelNode = SKLabelNode()

         

        And when I try to assign it a Font like so:

         

        speedLabel.fontName = UIFont.preferredFont(forTextStyle: .body).fontName

         

        In 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?