[python-win32] Problem accessing GetFontData in Windows API
whatyoulookin at yahoo.com
Sat Jan 23 03:02:17 CET 2010
> A much better solution is to search through the registry
> values in HKLM\SOFTWARE\Microsoft\Windows
Three things concern me with this method:
1) if I understand correctly, Windows appends the language to the font title. In other words, for German the Arial font is "arial german". Normally this wouldn't be the biggest issue in the world, but there are often multiple font names with the same string in them, one for bold, one for italic, etc., so its not simply a matter of returning any entry with the name "arial" in it.
2) under Vista 64-bit I've been getting permission denied errors when trying to read the registry using winreg.
3) its a kludge and bound to be inaccurate on some systems.
But yeah, it looks like it might be my best option.
More information about the python-win32