Trees | Index | Help |
|
---|
Module Font :: Class Font |
|
Method Summary | |
---|---|
__init__(self,
fileName,
size,
bold,
italic,
underline,
outline,
scale,
reversed,
systemFont)
| |
Get the Texture for a given character. | |
Return the height of this font | |
Return the line spacing of this font | |
Get the dimensions of a string when rendered with this font. | |
Draw some text. | |
Replace a character with a texture. |
Method Details |
---|
getGlyph(self, ch)Get theTexture for a given character.
|
getHeight(self)
|
getLineSpacing(self)
|
getStringSize(self, s, scale=0.002)Get the dimensions of a string when rendered with this font.
|
render(self, text, pos=(0, 0), direction=(1, 0, 0), scale=0.002)Draw some text.
|
setCustomGlyph(self, character, texture)Replace a character with a texture.
|
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Nov 23 23:40:43 2006 | http://epydoc.sf.net |