Font face description.
More...
#include <Urho3D/UI/FontFace.h>
|
|
| FontFace (Font *font) |
| | Construct.
|
| |
|
| ~FontFace () override |
| | Destruct.
|
| |
| virtual bool | Load (const unsigned char *fontData, unsigned fontDataSize, float pointSize)=0 |
| | Load font face.
|
| |
| virtual const FontGlyph * | GetGlyph (unsigned c) |
| | Return pointer to the glyph structure corresponding to a character. Return null if glyph not found.
|
| |
| virtual bool | HasMutableGlyphs () const |
| | Return if font face uses mutable glyphs.
|
| |
|
float | GetKerning (unsigned c, unsigned d) const |
| | Return the kerning for a character and the next character.
|
| |
|
bool | IsDataLost () const |
| | Return true when one of the texture has a data loss.
|
| |
|
float | GetPointSize () const |
| | Return point size.
|
| |
|
float | GetRowHeight () const |
| | Return row height.
|
| |
|
const ea::vector< SharedPtr< Texture2D > > & | GetTextures () const |
| | Return textures.
|
| |
|
| RefCounted () |
| | Construct. Allocate the reference count structure and set an initial self weak reference.
|
| |
|
virtual | ~RefCounted () |
| | Destruct. Mark as expired and also delete the reference count structure if no outside weak references exist.
|
| |
|
| RefCounted (const RefCounted &rhs)=delete |
| | Prevent copy construction.
|
| |
|
RefCounted & | operator= (const RefCounted &rhs)=delete |
| | Prevent assignment.
|
| |
| int | AddRef () |
| |
| int | ReleaseRef () |
| |
| int | Refs () const |
| |
| int | WeakRefs () const |
| |
|
RefCount * | RefCountPtr () const |
| | Return pointer to the reference count structure.
|
| |
|
bool | HasScriptObject () const |
| | Return true if script runtime object wrapping this native object exists.
|
| |
|
bool | IsScriptStrongRef () const |
| | Return true if script reference is strong.
|
| |
|
|
Font * | font_ {} |
| | Parent font.
|
| |
|
ea::unordered_map< unsigned, FontGlyph > | glyphMapping_ |
| | Glyph mapping.
|
| |
|
ea::unordered_map< unsigned, float > | kerningMapping_ |
| | Kerning mapping.
|
| |
|
ea::vector< SharedPtr< Texture2D > > | textures_ |
| | Glyph texture pages.
|
| |
|
float | pointSize_ {} |
| | Point size.
|
| |
|
float | rowHeight_ {} |
| | Row height.
|
| |
|
|
class | Font |
| |
|
class | FontFaceBitmap |
| |
◆ GetGlyph()
| const FontGlyph * Urho3D::FontFace::GetGlyph |
( |
unsigned |
c | ) |
|
|
virtual |
Return pointer to the glyph structure corresponding to a character. Return null if glyph not found.
Reimplemented in Urho3D::FontFaceFreeType.
◆ HasMutableGlyphs()
| virtual bool Urho3D::FontFace::HasMutableGlyphs |
( |
| ) |
const |
|
inlinevirtual |
◆ Load()
| virtual bool Urho3D::FontFace::Load |
( |
const unsigned char * |
fontData, |
|
|
unsigned |
fontDataSize, |
|
|
float |
pointSize |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following files:
- Urho3D/UI/FontFace.h
- Urho3D/UI/FontFace.cpp