Skip to main content

Glyph - 2.6.0b

Pygame typesetting library

Chandler Armstrong
glyph is a library for manipulating text and printing it to a pygame window.

so what? there are about a million pygame libraries to do that already.

glyph is different for a few reasons:

1) glyph provides a within string literal mini-language for text manipulation. you can use the mini-language to indicate what you want exactly where you want it, all right within the string literal.

2) glyph provides typesetting like functionality: positioning text, wrapping text, justifying text, scrolling text, switching font, text color, background color, even inserting images into text

3) glyph provides 'linked' text: text that returns a value whenever the mouse is hovering over it. this can be used to route the user around your program, or provide tooltips.

one simple object, the Glyph object, provides all this functionality. how? because Glyph interprets a mini-language, provided in string literals, that indicates how the Glyph object should treat text.


added embedded editor support to glyph. editors may be embedded in text using the glyph mini-language.

added the redraw method to Editors. the method redraws all lines of text in the Editor and is useful for clearing cursors.

added GlyphGroup and EditorGroup classes to manage groups of glyphs or editors.

changed some internal naming structure, but it does NOT effect any glyph or editor interface (unless client code was using some unconventional import styles.)

initialized pygame.font in now client code does not have to do this.

THIS IS A BETA RELEASE AND NOT FULLY TESTED. more features may be added to editors to suit them for embedding. specifically, the ability to restrict the number or type of characters (e.g. no more than 140 characters. or, integer characters only.)


Home Page


Glyph 2.5.4rc — 27 Jul, 2011

Glyph 2.6.0b — 6 Jul, 2012

Glyph 2.6.5 — 23 Dec, 2012

Glyph 1.1.0 — 10 Jan, 2009

Glyph 1.0.0 — 3 Jan, 2009

Glyph 1.2.0 — 14 Jan, 2009

Glyph 2.5.3rc — 9 Jul, 2011

Glyph 2.4.0 — 12 Dec, 2010

Glyph 2.5.0 — 2 Mar, 2011

Glyph 2.5.2rc — 25 Jun, 2011

Glyph 2.5.1 — 27 Mar, 2011

Glyph 2.0.0.a — 18 Jul, 2010

Glyph 2.0.0.a2 — 1 Aug, 2010

Glyph 2.1.0b — 5 Oct, 2010 account Comments

  • pooootrick 2013-05-07 08:11:56

    yaaaaay pygame