AndyObtiva / glimmer-dsl-libui

Glimmer DSL for LibUI - Prerequisite-Free Ruby Desktop Development Cross-Platform Native GUI Library - The Quickest Way From Zero To GUI - If You Liked Shoes, You'll Love Glimmer! - No need to pre-install any prerequisites. Just install the gem and have platform-independent GUI that just works on Mac, Windows, and Linux.
MIT License
458 stars 15 forks source link

default_font example for non-area? #14

Closed rubyFeedback closed 2 years ago

rubyFeedback commented 2 years ago

Hello,

The draw text example has this:

default_font family: 'Georgia', size: 13, weight: :medium, italic: :normal, stretch: :normal

This also works, the font looks like Georgia.

I am not sure how to use such a font for, example, a button. Would it be possible to add some such example? Perhaps ideally many different fonts in the same glimmer-dsl-libui application?

I'd love to get an application with buttons of larger size; this is to aid an elderly person with a bad eyesight status.

AndyObtiva commented 2 years ago

This has been answered in the other issue request about button with width and height: https://github.com/AndyObtiva/glimmer-dsl-libui/issues/11?notification_referrer_id=NT_kwDNWgywMjg4NzAwNjUyNToyMzA1Mg#issuecomment-1003483477

Screenshots:

custom label

custom button