LukeTerzich LukeTerzich - 1 year ago 235
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 Source

For SKLabelNode's you need to use:

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

or

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