Bitmap font face description.
More...
#include </var/dev/u3d/stable/Source/Urho3D/UI/FontFaceBitmap.h>
|
| FontFaceBitmap (Font *font) |
| Construct.
|
|
| ~FontFaceBitmap () override |
| Destruct.
|
|
bool | Load (const unsigned char *fontData, unsigned fontDataSize, float pointSize) override |
| Load font face. More...
|
|
bool | Load (FontFace *fontFace, bool usedGlyphs) |
| Load from existed font face, pack used glyphs into smallest texture size and smallest number of texture.
|
|
bool | Save (Serializer &dest, int pointSize, const String &indentation="\t") |
| Save as a new bitmap font type in XML format. Return true if successful.
|
|
| FontFace (Font *font) |
| Construct.
|
|
| ~FontFace () override |
| Destruct.
|
|
virtual bool | Load (const unsigned char *fontData, unsigned fontDataSize, float pointSize)=0 |
| Load font face. More...
|
|
virtual const FontGlyph * | GetGlyph (unsigned c) |
| Return pointer to the glyph structure corresponding to a character. Return null if glyph not found. More...
|
|
virtual bool | HasMutableGlyphs () const |
| Return if font face uses mutable glyphs. More...
|
|
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 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.
|
|
void | AddRef () |
|
void | ReleaseRef () |
|
int | Refs () const |
|
int | WeakRefs () const |
|
RefCount * | RefCountPtr () |
| Return pointer to the reference count structure.
|
|
|
unsigned | ConvertFormatToNumComponents (unsigned format) |
| Convert graphics format to number of components.
|
|
SharedPtr< Image > | SaveFaceTexture (Texture2D *texture) |
| Save font face texture as image resource.
|
|
bool | SaveFaceTexture (Texture2D *texture, const String &fileName) |
| Save font face texture as image file.
|
|
void | Blit (Image *dest, int x, int y, int width, int height, Image *source, int sourceX, int sourceY, int components) |
| Blit.
|
|
Bitmap font face description.
◆ Load()
bool Urho3D::FontFaceBitmap::Load |
( |
const unsigned char * |
fontData, |
|
|
unsigned |
fontDataSize, |
|
|
float |
pointSize |
|
) |
| |
|
overridevirtual |
The documentation for this class was generated from the following files:
- /var/dev/u3d/stable/Source/Urho3D/UI/FontFaceBitmap.h
- /var/dev/u3d/stable/Source/Urho3D/UI/FontFaceBitmap.cpp