Open nahid6970 opened 2 months ago
@nahid6970 CustomTkinter seems to have trouble displaying Unicode icons. I installed your font Jetbrainsmono
too.
The result of your code in my machine:
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:
Note: This is not a fix for the issue but an alternative
Hope this helps.
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
import customtkinter button = customtkinter.CTkButton(root, text="\uf011", command=None, hover_color="#154223", border_width=1, border_color="red",font=("jetbrainsmono nf", 16, "bold")) button.place(relx=0.5, rely=0.5, anchor=customtkinter.CENTER)
here it shows like this![image](https://github.com/TomSchimansky/CustomTkinter/assets/93816648/a3bd5709-1303-459e-9a99-f254775240e9)