I'm a little confused how to programmatically change the font size. Seems like the api exposes the system font size but I'm surprised there is nothing to let you easily change the font size without changing the fontFamily.
Here is what I have so far
var sketch = require('sketch')
var document = sketch.getSelectedDocument()
var textLayer = document.selectedLayers.layers
var font = textLayer.sketchObject.font()
var newFont = NSFont.fontWithDescriptor_size(font.fontDescriptor(), 12)
font = newFont
It seems my newFont assignment is incorrect. How would I go about applying the new style to the selected text layer?