Coder Social home page Coder Social logo

Comments (2)

nahid6970 avatar nahid6970 commented on June 3, 2024 1

yes its working also i found out that nerd font which consist
NF in the end for example VictorMono NF has the same issue but VictorMono NFP fixes it so i think fonts that has NFP or NFM at the end does not have this issues
its also working with JetBrainsMonoNL NFP too

from customtkinter.

rigvedmaanas avatar rigvedmaanas commented on June 3, 2024

@nahid6970 CustomTkinter seems to have trouble displaying Unicode icons. I installed your font Jetbrainsmono too.

The result of your code in my machine:
Screenshot 2024-04-22 at 1 25 33 PM

I think it would be better for you to use Google's Material design symbols for icons. You can download the font from github and use it. You can find your desired icon from fonts.google.com and include the name of the icon as text.

Example Code:

button = customtkinter.CTkButton(root, text="power_settings_new", command=None, hover_color="#154223", border_width=1, border_color="red",font=("MaterialIconsOutlined-Regular", 16, "bold"))
button.place(relx=0.5, rely=0.5, anchor=customtkinter.CENTER)

Image:
Screenshot 2024-04-22 at 1 24 47 PM

Note: This is not a fix for the issue but an alternative

Hope this helps.

from customtkinter.

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.