3DCoat Python API
The 3DCoat Python API documentation.
Loading...
Searching...
No Matches
coat.Font Class Reference

Public Member Functions

 __init__ (self)
 
 __init__ (self, FontInfo _finfo)
 
 __init__ (self, str _fname)
 
 __init__ (self, str _fname, int _st)
 
Font size (self, int _size)
 set the font size
 
int size (self)
 get the font size
 
Font weight (self, int weight)
 set the font weight
 
int weight (self)
 get the font weight
 
Font style (self, int st)
 set the style of the font
 
int style (self)
 get the font style
 
Font name (self, str _fname)
 set the font name
 
str name (self)
 get the font name
 
 select (self)
 selects a font object into the viewport
 

Constructor & Destructor Documentation

◆ __init__() [1/4]

coat.Font.__init__ ( self)

◆ __init__() [2/4]

coat.Font.__init__ ( self,
FontInfo _finfo )

◆ __init__() [3/4]

coat.Font.__init__ ( self,
str _fname )

◆ __init__() [4/4]

coat.Font.__init__ ( self,
str _fname,
int _st )

Member Function Documentation

◆ name() [1/2]

str coat.Font.name ( self)

get the font name

Returns
the font name

◆ name() [2/2]

Font coat.Font.name ( self,
str _fname )

set the font name

Parameters
_fnamethe font name
Returns
font reference

◆ select()

coat.Font.select ( self)

selects a font object into the viewport

◆ size() [1/2]

int coat.Font.size ( self)

get the font size

Returns
font size

◆ size() [2/2]

Font coat.Font.size ( self,
int _size )

set the font size

Parameters
_sizefont size property
Returns
font reference

◆ style() [1/2]

int coat.Font.style ( self)

get the font style

Returns
the font style

◆ style() [2/2]

Font coat.Font.style ( self,
int st )

set the style of the font

Parameters
stthe new font style
Returns
font reference

◆ weight() [1/2]

int coat.Font.weight ( self)

get the font weight

Returns
font weight

◆ weight() [2/2]

Font coat.Font.weight ( self,
int weight )

set the font weight

Parameters
weightfont weight property
Returns
font reference

The documentation for this class was generated from the following file: