cledio66 / pyglet

Automatically exported from code.google.com/p/pyglet
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Strict mode when loading system fonts on Windows #678

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When requesting system font on Windows, it has a bad habit of returning a font 
"similar" to one that have been requested. This automatic fallback mechanism 
may be a good feature for a browser, but bad for games that may rely on exact 
tested size of symbols and their typeface.

pyglet should have an ability to load font in "strict" mode, to fail if 
requested requested is not found. For that it needs:
1. test
2. check that returned font name/params matches requested ones (not sure 
Windows supports this)
3. query names and font parameters and check them manually (this may work 
better)

Original issue reported on code.google.com by techtonik@gmail.com on 27 Oct 2013 at 8:28