txtlib - 0.1.2
Francesco Pasa (frapa)
Txtlib is a small library (the download is only 2.5 Kb with a test script included) to render text. It's similar to Glyph and support almost the same features, but it use a different system.
Txtlib is developed to do a css editor.
How txtlib workTxtlib is a module; you need only to import it and call the class Text. Txtlib does not draw anything on the screen, it only build an image calling the update() method. This allow you to have the maximum control on the screen. You have just to blit the text.area image where you want.
Txtlib doesn't store the format information in the same variable as text. This complicate the control of format, but make txtlib suitable to make a text editor with code highlighting. Anyway, it's available a method to convert HTML-like mark-up code into txtlib text format.
Version 0.2 - Add html style markupFrom this version you can define the style with simple html-like tags - see documentation for more informations.
Version 0.1.2 - Bugfixes
TODO list (what txtlib doesn't support)
InfoPlease comment for any bug you find. If you find grammar errors in the text please inform me (I'm not very good at English).
Contact: francescopasa at gmail dot com
Pygame.org account Comments
If you wish to leave a comment with your pygame.org account, please sign in first.