/ . / _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
|
|
|
size
|
size ( self )
size() -> int
|
|
draw
|
draw (
self,
str,
len,
)
draw(str: str, len: int = 0)
|
|
x3dFamily
|
x3dFamily ( self )
x3dFamily() -> str
|
|
name
|
name ( self )
name() -> str
|
|
x3dStyle
|
x3dStyle ( self )
x3dStyle() -> str
|
|
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|None))
|
|
defaultFont
|
defaultFont ( self )
defaultFont() -> OGLFont
|
|
filename
|
filename ( self )
filename() -> str
|
|
valid
|
valid ( self )
valid() -> bool
|
|
setColor
|
setColor (
self,
r,
b,
g,
a,
)
setColor(r: float, b: float, g: float, a: float = 1.0f)
|
|
|