kojix2 / LibUI

A portable GUI library for Ruby
MIT License
208 stars 10 forks source link

Draw Text - fancy colours and font-effects? #20

Closed rubyFeedback closed 3 years ago

rubyFeedback commented 3 years ago

Hello,

I was looking at: https://github.com/msink/kotlin-libui/blob/master/samples/drawtext/README.md

Unfortunately I don't understand the kotlin code that well, but I was surprised to see one can style the text via libui like this. That reminds me of gtk too.

How difficult would it be to port something like this into the examples? Just a single widget that contains text with different colours and so.

kojix2 commented 3 years ago

I understand. I'll add a sample.

kojix2 commented 3 years ago

Added a sample of draw text. But I added it in a hurry, so there may be many mistakes.

If you find any, please send me a pull request.