nim-lang / ui

Beginnings of what might become Nim's official UI library.
MIT License
240 stars 32 forks source link

[Additional Example] Fancy text example #39

Open rubyFeedback opened 3 years ago

rubyFeedback commented 3 years ago

Heya Araq,

Do you think a fancy text example could be added?

Specifically I mean to showcase how to do e. g. a green word or a bold or italic word.

The Ring programming language/environment has an example for this called "Text Drawing". A quick image can be seen there:

https://ring-lang.github.io/doc1.14/libui.html

Or if you guys don't want to scroll down, here is the direct URL:

https://ring-lang.github.io/doc1.14/_images/libui_15.png

(Note: I only refer to the text; the choose-a-font part is not really necessary, the example can easily use hardcoded values as is.)