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: 5 comments 9 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
5 replies
@ghost
Comment options

@BarakXYZ
Comment options

@alejooroncoy
Comment options

@ghost
Comment options

@khalmurad
Comment options

Answer selected by RVFET
Comment options

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

Comment options

You must be logged in to vote
3 replies
@khalmurad
Comment options

@khalmurad
Comment options

@VoidMaker06
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
9 participants