/ . / _chimera / OGLFont
OGLFont(name: str, size: int, style: int = 0) -> OGLFont
constants:
- bold = 1
- italic = 4
- normal = 0
- overstrike = 16
- roman = 2
- underline = 8
no attributes
Methods
|
|
|
draw
|
draw (
self,
str,
len,
)
draw(str: str, len: int = 0)
|
|
setColor
|
setColor (
self,
r,
b,
g,
a,
)
setColor(r: float, b: float, g: float, a: float = 1.0f)
|
|
setup
|
setup ( self )
setup()
|
|
style
|
style ( self )
style() -> int
|
|
height
|
height (
self,
str,
len,
)
height(str: str, len: int = 0) -> tuple(float, float)
|
|
width
|
width (
self,
str,
len,
)
width(str: str, len: int = 0) -> float
|
|
cleanup
|
cleanup ( self )
cleanup()
|
|
setDefaultFont
|
setDefaultFont ( self, f )
setDefaultFont(f: OGLFont)
|
|
defaultFont
|
defaultFont ( self )
defaultFont() -> OGLFont
|
|
size
|
size ( self )
size() -> int
|
|
valid
|
valid ( self )
valid() -> bool
|
|
name
|
name ( self )
name() -> str
|
|
|