NiGui icon indicating copy to clipboard operation
NiGui copied to clipboard

Bold/Italic font style?

Open runvnc opened this issue 6 years ago • 2 comments

It looks like if I want bold or italics its not ready yet since there is no style option that I can see. But maybe it would not be hard for me to add that option? I hope.

runvnc avatar Aug 11 '19 07:08 runvnc

I have just added support for bold font (commit https://github.com/trustable-code/NiGui/commit/eeae283cf8e45fa77fd13a23f3f91159398a22f0). Example:

var button = newButton("Button with bold text")
button.fontBold = true

Does this work for you? I guess italic style can be implemented the same way.

simonkrauter avatar Aug 17 '19 11:08 simonkrauter

Wow nice, thank you!

On Sat, Aug 17, 2019, 4:55 AM Simon Krauter [email protected] wrote:

I have just added support for bold font (commit eeae283 https://github.com/trustable-code/NiGui/commit/eeae283cf8e45fa77fd13a23f3f91159398a22f0 ). Example:

var button = newButton("Button with bold text") button.fontBold = true

Does this work for you? I guess italic style can be implemented the same way.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/trustable-code/NiGui/issues/44?email_source=notifications&email_token=AACU5HFP6BLTUZBZFEXVZLTQE7RJ3A5CNFSM4IK3EUWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QJW3I#issuecomment-522230637, or mute the thread https://github.com/notifications/unsubscribe-auth/AACU5HB4WG55RYPK5VNKIULQE7RJ3ANCNFSM4IK3EUWA .

runvnc avatar Aug 17 '19 12:08 runvnc