Glyph - 2.4.0
Chandler Armstrong (omnirizon)
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.
The new release adds the editor class and fixes some stuff with the glyph class that prevented the 'justified' text justification from working. after downloading, unzip the folder to your PYTHONPATH. The folder will be named 'glyph-2.4.0'. rename the folder to 'glyph' (without the quotes). I know that's pretty ghetto, and I apologize. I need to get a real installer... run demo.py to see glyph in action. you will be given the choice of using the editor, or getting an introduction to glyph while seeing some of its features.
Pygame.org account Comments
If you wish to leave a comment with your pygame.org account, please sign in first.