Giter Site home page Giter Site logo

icon text display issue about iced_aw HOT 7 CLOSED

iced-rs avatar iced-rs commented on July 18, 2024
icon text display issue

from iced_aw.

Comments (7)

Kaiden42 avatar Kaiden42 commented on July 18, 2024 1

Are you importing your own icon font? I recently had the same issue. My problem was that I have imported an other font under the same name as the icon font of iced_aw. The icons of iced_aw are named "Icons". If you import an other font under the same name they "collide" with each other.

pub const ICON_FONT: Font = Font::External {
    name: "Icons", // Use a different name here
    bytes: include_bytes!("../font/icons.ttf"),
};

from iced_aw.

Cupnfish avatar Cupnfish commented on July 18, 2024 1

Thank you very much, it solved my problem!

from iced_aw.

Kaiden42 avatar Kaiden42 commented on July 18, 2024

I've reopened this issue as a reminder to rename the icon font of iced_aw to something more unique in the future. A more unique name would save a headache for the next person struggling with this issue.

from iced_aw.

bobgates avatar bobgates commented on July 18, 2024

Hi. I've got the same issue. I'm using tabbar (which uses icons) and date_picker. I'm not importing my own icons, but the date_picker has the buttons without icons as above. If I wanted to use the solution above, where do I make changes?

from iced_aw.

Kaiden42 avatar Kaiden42 commented on July 18, 2024

If you are not importing your own icons and the icons are visible on the tabbar but not on the date_picker, this seems like a different kind of bug as there is no second icon font messing around with the one of iced_aw itself 🤔

from iced_aw.

mkrueger avatar mkrueger commented on July 18, 2024

Thanks for leaving that open - had the same issue :).
My font was called "ICONS" - was 1:1 the same than in the TODOS example. I wanted to switch to SVG icons anwyays.

from iced_aw.

genusistimelord avatar genusistimelord commented on July 18, 2024

this is no longer relevant on how iced uses fonts.

from iced_aw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.