LukeTerzich LukeTerzich - 1 year ago 278
Swift Question

Programmatically Make a SKLabelNode Bold in swift

As the title states - I would like to make my

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")


var labelNode = SKLabelNode()
labelNode.fontName = "AvenirNext-Bold"
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download