: [python-win32] Load custom font
Here’s a more windows centric approach and it foreaches through all the Windows
fonts:
** It’s interesting that it says that it was last modified today… odd, but
whatever
from win32com.client.dynamic import Dispatch
ids
9/2022 11:16 AM
From: python-win32 On
Behalf Of Jérémie Bergeron
Sent: Wednesday, June 8, 2022 6:28 AM
To: python-win32@python.org
Subject: [python-win32] Load custom font
Hi,
Is it possible to get the family name of a font and/or any other information
from the naming table from a font file?
ow.com/questions/24085996/how-i-can-load-a-font-file-with-pil-imagefont-truetype-without-specifying-the-ab
HTH
Steven
From: python-win32 On
Behalf Of Jérémie Bergeron
Sent: Wednesday, June 8, 2022 6:28 AM
To: python-win32@python.org
Subject: [python-win32] Load custom font
Hi,
Is it possible
Hi,
Is it possible to get the family name of a font and/or any other information
from the naming table from a font file?
Something like that:
font = win32ui.loadFont(pathToTheFont)
familyName = font.getNameId(1)
Have a nice day
___
python-win32 mailin