Python Script Engine
8.0
GL Studio Editor Python Script API
|
Public Types | |
enum | FontEncoding_e { ASCII, UNICODE, RUNTIME } |
Public Member Functions | |
Font (String family, String style, unsigned int ptSize, bool isUnicode=false) | |
Font (String family, String style, unsigned int ptSize, FontEncoding_e encoding) | |
bool | operator== (Font &rhs) const |
bool | operator!= (Font &rhs) const |
String | GetFamily (void) |
String | GetStyle (void) |
unsigned int | GetPtSize (void) |
void | SetFamily (String family) |
void | SetStyle (String style) |
void | SetPtSize (unsigned int ptSize) |
String | GetKey (void) |
bool | IsUnicode (void) |
bool | IsRuntime (void) |
std::vector< GlyphRange > | GetGlyphRanges (void) |
Public Attributes | |
newobject | GetGlyphRanges |
Python extension for the Font editor class.
enum Font::FontEncoding_e |
Font::Font | ( | String | family, |
String | style, | ||
unsigned int | ptSize, | ||
bool | isUnicode = false |
||
) |
Creates a font with the given information set.
family | font family |
style | font style |
ptSize | font point size |
isUnicode | [optional, default to false] whether this font is Unicode |
Font::Font | ( | String | family, |
String | style, | ||
unsigned int | ptSize, | ||
FontEncoding_e | encoding | ||
) |
Creates a font with the given information set.
family | font family |
style | font style |
ptSize | font point size |
encoding | [optional, default to ASCII] the encoding used for the font |
String Font::GetFamily | ( | void | ) |
Retrieves the font's family name.
std::vector< GlyphRange > Font::GetGlyphRanges | ( | void | ) |
Retrieve a vector of the glyph ranges for this font.
String Font::GetKey | ( | void | ) |
Retrieves a String represenation of the font, used as a key in certain maps.
unsigned int Font::GetPtSize | ( | void | ) |
Retrieves the font's point size.
String Font::GetStyle | ( | void | ) |
Retrieves the font's style name.
bool Font::IsRuntime | ( | void | ) |
Is the font Runtime or not?
bool Font::IsUnicode | ( | void | ) |
Is the font Unicode or not?
bool Font::operator!= | ( | Font & | rhs | ) | const |
inequality operator
rhs | instance to compare |
bool Font::operator== | ( | Font & | rhs | ) | const |
equality operator
rhs | instance to compare |
void Font::SetFamily | ( | String | family | ) |
Sets the font's family name.
family | New font family name |
void Font::SetPtSize | ( | unsigned int | ptSize | ) |
Sets the font's point size.
ptSize | New font point size |
void Font::SetStyle | ( | String | style | ) |
Sets the font's style name.
style | New font style name |
newobject Font::GetGlyphRanges |