JX Application Framework
|
#include <JFont.h>
Public Member Functions | |
void | Set (const JString &name, const JSize size=0, const JFontStyle &style=JFontStyle()) |
void | Set (const JFont &f) |
JFontID | GetID () const |
const JString & | GetName () const |
void | SetName (const JString &name) |
JSize | GetSize () const |
void | SetSize (const JSize size) |
const JFontStyle & | GetStyle () const |
void | SetStyle (const JFontStyle &style) |
void | ClearStyle () |
void | SetBold (const bool bold) |
void | SetItalic (const bool italic) |
void | SetUnderlineCount (const JSize count) |
void | SetStrike (const bool strike) |
void | SetColor (const JColorID color) |
JSize | GetLineHeight (JFontManager *fontManager) const |
JSize | GetLineHeight (JFontManager *fontManager, JCoordinate *ascent, JCoordinate *descent) const |
JSize | GetCharWidth (JFontManager *fontManager, const JUtf8Character &c) const |
JSize | GetStringWidth (JFontManager *fontManager, const JString &str) const |
JSize | GetStrikeThickness () const |
JSize | GetUnderlineThickness () const |
bool | IsExact (JFontManager *fontManager) const |
bool | HasGlyphsForString (JFontManager *fontManager, const JString &s) const |
bool | HasGlyphForCharacter (JFontManager *fontManager, const JUtf8Character &c) const |
bool | SubstituteToDisplayGlyph (JFontManager *fontManager, const JUtf8Character &c) |
JFont () | |
Friends | |
class | JFontManager |
bool | operator== (const JFont &f1, const JFont &f2) |
Stores complete font information required to render.
|
inline |
|
inline |
JSize JFont::GetCharWidth | ( | JFontManager * | fontManager, |
const JUtf8Character & | c | ||
) | const |
|
inline |
JSize JFont::GetLineHeight | ( | JFontManager * | fontManager | ) | const |
JSize JFont::GetLineHeight | ( | JFontManager * | fontManager, |
JCoordinate * | ascent, | ||
JCoordinate * | descent | ||
) | const |
const JString & JFont::GetName | ( | ) | const |
|
inline |
JSize JFont::GetStrikeThickness | ( | ) | const |
JSize JFont::GetStringWidth | ( | JFontManager * | fontManager, |
const JString & | str | ||
) | const |
|
inline |
JSize JFont::GetUnderlineThickness | ( | ) | const |
bool JFont::HasGlyphForCharacter | ( | JFontManager * | fontManager, |
const JUtf8Character & | c | ||
) | const |
bool JFont::HasGlyphsForString | ( | JFontManager * | fontManager, |
const JString & | s | ||
) | const |
bool JFont::IsExact | ( | JFontManager * | fontManager | ) | const |
Returns true if the font matches exactly what was requested.
void JFont::Set | ( | const JFont & | f | ) |
void JFont::Set | ( | const JString & | name, |
const JSize | size = 0 , |
||
const JFontStyle & | style = JFontStyle() |
||
) |
void JFont::SetBold | ( | const bool | bold | ) |
void JFont::SetColor | ( | const JColorID | color | ) |
void JFont::SetItalic | ( | const bool | italic | ) |
void JFont::SetName | ( | const JString & | name | ) |
void JFont::SetSize | ( | const JSize | size | ) |
void JFont::SetStrike | ( | const bool | strike | ) |
void JFont::SetStyle | ( | const JFontStyle & | style | ) |
void JFont::SetUnderlineCount | ( | const JSize | count | ) |
bool JFont::SubstituteToDisplayGlyph | ( | JFontManager * | fontManager, |
const JUtf8Character & | c | ||
) |
Returns true if the font name had to be changed
|
friend |