LukeTerzich LukeTerzich - 4 months ago 43
Swift Question

Programmatically Make a SKLabelNode Bold in swift

As the title states - I would like to make my

SKLabelNode
bold programmatically.

How do I go about this?

Answer

For SKLabelNode's you need to use:

var labelNode = SKLabelNode()
labelNode = SKLabelNode(fontNamed: "AvenirNext-Bold")

or

var labelNode = SKLabelNode()
labelNode.fontName = "AvenirNext-Bold"
Comments