CustomTkinter icon indicating copy to clipboard operation
CustomTkinter copied to clipboard

Docs don't include loading custom fonts

Open jonadshead opened this issue 1 year ago • 2 comments

The docs are not very clear, you should add a line in the CTkFont section explaining that you can load custom fonts via: customtkinter.FontManager.load_font("<insert_font_path_here>")

jonadshead avatar Mar 27 '23 11:03 jonadshead

Can you elaborate on how to do it? What type of file does that function expect, and does it return anything?

kelltom avatar May 12 '23 03:05 kelltom

the function is def load_font(cls, font_path: str) -> bool.

It returns a bool showing whether it successfully loaded the font. And then you can give it a standard font file like .ttf or .otf

jonadshead avatar May 12 '23 05:05 jonadshead