Open unknown-kel opened 1 year ago
Hi!
Have you tried examples/example.py
? It works fine for me.
If yes, could you share an minimal reproducible example of your code?
Yh thanks,
I figured it out in a different way Actually I'm using customtkinter
unknown-kel, pls help me, I'm using customtkinter too, but i cant load 'Oswald'
font = Font(file='Oswald-ExtraLight.ttf')
assert font.is_font_available("Oswald")
assert "Oswald-ExtraLight" in font.loaded_fonts()
assert font.font_info("Oswald-ExtraLight.ttf")[0]["copyright"]
self.name = customtkinter.CTkLabel(self, text='Main', font=customtkinter.CTkFont('Oswald-ExtraLight', 15)).place(x=50, y=1)
I get assertion error
assert font.is_font_available("Oswald")
AssertionError
what i'm doing wrong?
And with assert font.is_font_available("Oswald-Extralight")
?
i used another font and it works fine thanks !
how can i set the font size, seems its not working