Urho3D::FontFaceFreeType Class Reference
Urho3D::FontFaceFreeType Class Reference
Free type font face description. More...
#include <Urho3D/UI/FontFaceFreeType.h>
Inheritance diagram for Urho3D::FontFaceFreeType:
Collaboration diagram for Urho3D::FontFaceFreeType:
Public Member Functions | |
| FontFaceFreeType (Font *font) | |
| Construct. | |
| ~FontFaceFreeType () | |
| Destruct. | |
| virtual bool | Load (const unsigned char *fontData, unsigned fontDataSize, int pointSize) |
| 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. | |
Public Member Functions inherited from Urho3D::FontFace | |
| FontFace (Font *font) | |
| Construct. | |
| ~FontFace () | |
| Destruct. | |
| short | 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. | |
| int | GetPointSize () const |
| Return point size. | |
| int | GetRowHeight () const |
| Return row height. | |
|
const Vector< SharedPtr < Texture2D > > & | GetTextures () const |
| Return textures. | |
Public Member Functions inherited from Urho3D::RefCounted | |
| 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. | |
| void | AddRef () |
| Increment reference count. Can also be called outside of a SharedPtr for traditional reference counting. | |
| void | ReleaseRef () |
| Decrement reference count and delete self if no more references. Can also be called outside of a SharedPtr for traditional reference counting. | |
| int | Refs () const |
| Return reference count. | |
| int | WeakRefs () const |
| Return weak reference count. | |
| RefCount * | RefCountPtr () |
| Return pointer to the reference count structure. | |
Private Member Functions | |
| bool | CanLoadAllGlyphs (const PODVector< unsigned > &charCodes, int &textureWidth, int &textureHeight) const |
| Check can load all glyph in one texture, return true and texture size if can load. | |
| bool | SetupNextTexture (int textureWidth, int textureHeight) |
| Setup next texture. | |
| bool | LoadCharGlyph (unsigned charCode, Image *image=0) |
| Load char glyph. | |
Private Attributes | |
| SharedPtr< FreeTypeLibrary > | freeType_ |
| FreeType library. | |
| void * | face_ |
| FreeType face. Non-null after creation only in dynamic mode. | |
| int | loadMode_ |
| Load mode. | |
| int | ascender_ |
| Ascender. | |
| bool | hasMutableGlyph_ |
| Has mutable glyph. | |
| AreaAllocator | allocator_ |
| Glyph area allocator. | |
Additional Inherited Members | |
Protected Member Functions inherited from Urho3D::FontFace | |
| SharedPtr< Texture2D > | CreateFaceTexture () |
| Create a texture for font rendering. | |
| SharedPtr< Texture2D > | LoadFaceTexture (SharedPtr< Image > image) |
| Load font face texture from image resource. | |
Protected Attributes inherited from Urho3D::FontFace | |
| Font * | font_ |
| Parent font. | |
| HashMap< unsigned, FontGlyph > | glyphMapping_ |
| Glyph mapping. | |
| HashMap< unsigned, short > | kerningMapping_ |
| Kerning mapping. | |
| Vector< SharedPtr< Texture2D > > | textures_ |
| Glyph texture pages. | |
| int | pointSize_ |
| Point size. | |
| int | rowHeight_ |
| Row height. | |
Detailed Description
Free type font face description.
The documentation for this class was generated from the following files:
- Source/Urho3D/UI/FontFaceFreeType.h
- Source/Urho3D/UI/FontFaceFreeType.cpp

Public Member Functions inherited from