[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] road to 1.6



Not sure if anyone else would find this useful, but here are some things I have found myself wanting when writing an OpenGL font engine (I've used FontTools to get these for the solid fonts, but it would be useful to get them from PyGame for the bitmap fonts (and to provide a new source for the solid-font outlines)):

* Font names as included in the "names" table of the TrueType fonts
* Font outlines as seen in the "glyf" table of the TrueType fonts
o flags
o coordinates
o endPtsOfContours
o glyph names (required for outline lookup) as seen in the
"cmap" table
* Panose 10-byte array (not sure how useful it really would be,
haven't used it myself yet)

The outlines are only of interest if you are creating extrusions or the like. The font names are useful for doing font matching, the panose array might also be of interest for those looking to do more advanced font matching.

Enjoy,
Mike


Pete Shinners wrote:
...

from 1.5.5 here's the new features coming in 1.5.6
font refcount free bug
Font.render() won't crash on empty string
...

load Fonts from any python file-like object
...

there's a few things left i need to add
...

  system font finder
...

_______________________________________
 Mike C. Fletcher
 Designer, VR Plumber, Coder
 http://members.rogers.com/mcfletch/