|
__init__(self,
name,
size)
Return Font object. |
|
|
|
|
|
|
|
render(self,
text,
antialias=True,
color=(0,0,0),
background=None,
surface=None)
Render text onto surface.
Arguments are text to render, and optional antialias, RGB color of text, RGB color of background, and surface for text rendering. |
|
|
|
size(self,
text)
Return size x,y of a surface for of given text. |
|
|
|
set_underline(self,
setting=True)
Set font underline style.
Optional setting argument, default to True. |
|
|
|
get_underline(self)
Check if font is underlined. |
|
|
|
set_bold(self,
setting=True)
Set font bold style.
Optional setting argument, default to True. |
|
|
|
get_bold(self)
Check if font is bold. |
|
|
|
set_italic(self,
setting=True)
Set font italic style.
Optional setting argument, default to True. |
|
|
|
get_italic(self)
Check if font is italized. |
|
|
|
get_linesize(self)
Return linesize of font. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|