Home | Trees | Index | Help |
|
---|
Package pygext :: Package text |
|
Function Summary | |
---|---|
bordered_text(font, text, color, bordercolor, antialias=False) -> Surface | |
multiline(font, lines) -> Surface | |
split(font, text, maxwidth) -> lines | |
textbox(font, text, maxwidth, color=(255,255,255), antialias=True) -> Surface |
Function Details |
---|
bordered_text(font, text, color, bordercolor, antialias=False)bordered_text(font, text, color, bordercolor, antialias=False) -> Surface Render a piece of text just like pygame Font.render, but add a 1px wide border around the text. |
multiline(font, lines, color=(255, 255, 255), antialias=True, border=False)multiline(font, lines) -> Surface Renders multiple lines of text. 'lines' can be a string that contains linefeed characters or a list of strings. |
split(font, text, maxwidth)split(font, text, maxwidth) -> lines Splits a string of text into multiple lines, so that when the text is rendered using the given font, no line exceeds the specified maximum width. |
textbox(font, text, maxwidth, color=(255, 255, 255), antialias=True, border=False)textbox(font, text, maxwidth, color=(255,255,255), antialias=True) -> Surface Renders a string using the given font so that each line is no wider than the specified maximum width (except, if a word does not fit a single line). This is essentially the same as calling pygext.text.split and pygext.text.multiline manually. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Mon Jun 12 18:21:20 2006 | http://epydoc.sf.net |