pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
PyHiero

PyHiero - latest

Stefan Seemayer (semi)

Tags:

Description

PyHiero supports loading of Hiero fonts into Pygame-font-like objects that can be used for rendering just like you are used to. It supports

  • Alpha blending
  • Colors and backgrounds
  • Characters with differing sizes with nice kerning
  • Compactly organized bitmap sheets, split into multiple files, if desired

PyHiero is licensed under the MIT license, so feel free to use it in all your projects!

Links

Home Page: https://github.com/sseemayer/PyHiero
Source: https://github.com/sseemayer/PyHiero/zipball/master
Windows: https://github.com/sseemayer/PyHiero/zipball/master
Mac: https://github.com/sseemayer/PyHiero/zipball/master

Screenshot


click to view original size

Releases

PyHiero - latest - Oct 1, 2012

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

August 23, 2013 5:29am - Gummbum - nickname: (gummbum)
I incorrectly thought I was using Python 2.7. I am using Python 2.6. (I know. Upgrade, for cryin' out loud! I was a diehard psyco user, which did not work with 2.7. Haven't had a need for psyco in a couple years. Maybe I will upgrade...)
August 23, 2013 4:44am - Gummbum - nickname: (gummbum)
Very nice!

Coding those fnt files looks very laborious. Wonder how much a wizard would help, or if an image processor would be feasible.

I had to change only two things to make this compatible with Python 2.7.

demo.py line 42:
samples = {}
for fontname, fnt in fonts.items():
samples[fontname] = fnt.render(blah, color=colors[fontname])

font.py line 34:
vals = {}
for k,v in ( elem.split("=") for elem in l ):
vals[k] = ["".join(m) for m in HieroFont.RE_UNQUOTE.findall(v)][0]
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Apr 16, 2014


Apr 13, 2014

Apr 9, 2014

Mar 18, 2014


Mar 15, 2014


Mar 14, 2014

Mar 13, 2014

Mar 11, 2014

Mar 9, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)