Skip to main content

Glyph - 2.5.0

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.


NOTICE: all is well! The installation setup scripts have been fixed. Please download and try out the demo. See below for instructions. CHANGELOG: - Fixed a bug that prevented functions or environments from occurring as the first tokens in glyph input-syntax. - Fixed a bug that was causing unhelpful errors to occur when the rect argument was too small to contain the longest word in the input text - Fixed portability problems with paths in glyph input text between windows and *NIX platforms (thanks quazar for noting this problem!) - and.... *drum roll* distributing glyph as a genuine py-thon package, complete with setup script and entry on PyPI. OK so that's not a big deal maybe, but it sort of says something about the status of the glyph package. to install: download, unpack, and run 'python install' this is my first time to create an actual distribution, so if something goes wrong with the install please post here or send an email to let me know. Please make note: releases prior to 2.5.0 do not provide this installation option. to see a demo: from glyph.demos import intro main = intro.Main() main.start() that should get you going. Press any key to exit the demo. Exiting will stop the interpreter entirely, and end your session, so press ctrl-c if you don't want to do that. if you choose the option to play with the editor, be warned that it isn't entirely without bugs. It shouldn't crash, but the text is sometimes not rendered in the right spaces. Additionally, the editor has no exit condition, so you will need to press ctrl-c when you are finished. I'll add some more demos and make the interface to demos a little less unwieldy in future releases.


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

    yaaaaay pygame