iced-rs / iced_aw

Additional widgets for the Iced GUI library
MIT License
467 stars 110 forks source link

Icons not properly rendered #256

Closed Ultraxime closed 4 months ago

Ultraxime commented 4 months ago

Hello,

I'm using iced_aw to use its widgets in my software.

However I encounter an issue: while using color_picker the check and the X are rendered as question marks in boxes, the same goes for the arrows in number_input.

image image

Does anyone have an idea of where it comes from ? Maybe it's because I'm lacking the glyphs on my computer (I'm running with ArchLinux) but it seems that the glyphs are embedded in iced_aw.

Thank you for any help

genusistimelord commented 4 months ago

what version of iced and iced_aw?

Did you make sure to load the fonts into iced?

Ultraxime commented 4 months ago

what version of iced and iced_aw?

I'm using iced 0.12.1 and iced_aw 0.9.3

Did you make sure to load the fonts into iced?

I don't know how to load the font, as it is the one you defined in iced_aw. (If I understood properly)

genusistimelord commented 4 months ago

https://github.com/iced-rs/iced_aw/blob/67de1be745c67564c2373b27111c3042da5d1c7f/examples/number_input/src/main.rs#L55 you need to load it like the above example. The newest iced in the main branch is much nicer than this older one. But for now you need to do it this way.

Ultraxime commented 4 months ago

Thank you It solved my issue