Classes | |
class | FixedFont |
Models fixed fonts, a category which gathers all fonts whose rendering demands little resources, but cannot be scaled, as opposed to Truetype fonts. More... | |
class | Font |
Models an abstract font, including its rendering style (bold, italic, etc. More... | |
class | TrueTypeFont |
Truetype font. More... | |
Typedefs | |
typedef Length | PointSize |
Point size, in dots per inch. | |
typedef Ceylan::Uint16 | FontIndex |
Describes a font index, when multiple fonts are stored in the same location. | |
typedef Ceylan::Uint16 | Height |
Describes a font pixel unsigned height. | |
typedef Ceylan::Sint16 | SignedHeight |
Describes a font pixel signed height. | |
typedef Ceylan::Uint16 | Width |
Describes a font pixel unsigned width. | |
typedef Ceylan::Sint16 | SignedWidth |
Describes a font pixel signed width. | |
typedef int | RenderingStyle |
Describes the rendering style of a font. | |
typedef Ceylan::Uint16 | TextIndex |
Index designating a position in a text, starting at zero with the first character. | |
typedef Ceylan::Uint16 | LineNumber |
Describes a line number is a multiline text. | |
Enumerations | |
enum | HorizontalAlignment { Left, WidthCentered, Right } |
Defines the various possible horizontal alignments. More... | |
enum | VerticalAlignment { Top, HeightCentered, Bottom } |
Defines the various possible vertical alignments. More... | |
Functions | |
OSDL_DLL bool | printBasic (const std::string &text, Surface &targetSurface, Coordinate x, Coordinate y, Pixels::ColorElement red, Pixels::ColorElement blue, Pixels::ColorElement green, Pixels::ColorElement alpha=Pixels::AlphaOpaque) throw () |
Prints specified string on target surface, with specified color, taking as upper left corner specified coordinates. | |
OSDL_DLL bool | printBasic (const std::string &text, Surface &targetSurface, Coordinate x, Coordinate y, Pixels::ColorDefinition colorDef) throw () |
Prints specified string on target surface, with specified color, taking as upper left corner specified coordinates. | |
Variables | |
OSDL_DLL const Length | BasicFontCharacterWidth |
The character width of fixed basic font. | |
OSDL_DLL const Length | BasicFontCharacterHeight |
The character height of fixed basic font. |
typedef Ceylan::Uint16 OSDL::Video::TwoDimensional::Text::FontIndex |
Describes a font index, when multiple fonts are stored in the same location.
Definition at line 62 of file OSDLFont.h.
typedef Ceylan::Uint16 OSDL::Video::TwoDimensional::Text::Height |
typedef Ceylan::Uint16 OSDL::Video::TwoDimensional::Text::LineNumber |
Describes a line number is a multiline text.
Definition at line 98 of file OSDLFont.h.
typedef Ceylan::Sint16 OSDL::Video::TwoDimensional::Text::SignedHeight |
typedef Ceylan::Sint16 OSDL::Video::TwoDimensional::Text::SignedWidth |
typedef Ceylan::Uint16 OSDL::Video::TwoDimensional::Text::TextIndex |
Index designating a position in a text, starting at zero with the first character.
Definition at line 89 of file OSDLFont.h.
typedef Ceylan::Uint16 OSDL::Video::TwoDimensional::Text::Width |
bool OSDL::Video::TwoDimensional::Text::printBasic | ( | const std::string & | text, | |
Surface & | targetSurface, | |||
Coordinate | x, | |||
Coordinate | y, | |||
Pixels::ColorDefinition | colorDef | |||
) | throw () |
Prints specified string on target surface, with specified color, taking as upper left corner specified coordinates.
Basic 8x8 bitmap font will be used.
Not all accentuated characters are supported by the built-in font. For example, 'à', 'â', etc. are replaced by greek characters.
Definition at line 57 of file OSDLFixedFont.cc.
References OSDL::Video::Pixels::convertColorDefinitionToRawPixelColor().
Referenced by OSDL::Video::Surface::printText().
bool OSDL::Video::TwoDimensional::Text::printBasic | ( | const std::string & | text, | |
Surface & | targetSurface, | |||
Coordinate | x, | |||
Coordinate | y, | |||
Pixels::ColorElement | red, | |||
Pixels::ColorElement | blue, | |||
Pixels::ColorElement | green, | |||
Pixels::ColorElement | alpha = Pixels::AlphaOpaque | |||
) | throw () |
Prints specified string on target surface, with specified color, taking as upper left corner specified coordinates.
Basic 8x8 bitmap font will be used.
Not all accentuated characters are supported by the built-in font. For example, 'à', 'â', etc. are replaced by greek characters.
Definition at line 73 of file OSDLFixedFont.cc.
The character height of fixed basic font.
Definition at line 40 of file OSDLFixedFont.cc.
Referenced by OSDL::Video::TwoDimensional::Widget::drawDecorations().
The character width of fixed basic font.
Definition at line 37 of file OSDLFixedFont.cc.
Referenced by OSDL::Video::TwoDimensional::Widget::drawDecorations().