Skip to content

How to import a TTF file as font which isn't installed on the system #900

Answered by Akascape
RVFET asked this question in Q&A
Discussion options

You must be logged in to vote

@RVFET No need to use any other package/module like pyglet, it's inbuilt in customtkinter.

customtkinter.FontManager.load_font("my_font.ttf")
# then simply use that font
button = customtkinter.CTkButton(app, font=("my_font",20))

Make sure that the name of the font is properly described.

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@ghost
Comment options

@BarakXYZ
Comment options

@alejooroncoy
Comment options

@ghost
Comment options

Answer selected by RVFET
Comment options

You must be logged in to vote
1 reply
@santvz6
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants