python-tkextrafont icon indicating copy to clipboard operation
python-tkextrafont copied to clipboard

unable to set font size

Open unknown-kel opened this issue 2 years ago • 5 comments

how can i set the font size, seems its not working

unknown-kel avatar Apr 03 '23 22:04 unknown-kel

Hi! Have you tried examples/example.py? It works fine for me.

If yes, could you share an minimal reproducible example of your code?

rdbende avatar Apr 03 '23 22:04 rdbende

Yh thanks,

I figured it out in a different way Actually I'm using customtkinter

unknown-kel avatar Apr 03 '23 23:04 unknown-kel

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?

DataReset avatar May 09 '23 07:05 DataReset

And with assert font.is_font_available("Oswald-Extralight")?

rdbende avatar May 09 '23 10:05 rdbende

i used another font and it works fine thanks !

DataReset avatar May 12 '23 20:05 DataReset