khchen / wNim

Nim's Windows GUI Framework
MIT License
326 stars 17 forks source link

StaticText font size #16

Closed PMunch closed 5 years ago

PMunch commented 5 years ago

Is it possible to set the font size of a static text? I trying poking around the code but the only thing I could find was a way to get the font size.

PMunch commented 5 years ago

Found the answer in in the frame.nim example:

var statictext = StaticText(panel, label="This is just some text")
statictext.font = Font(24, weight = wFontWeightBold)