Derived GlyphData implementation for bitmap fonts. More...
#include <kanzi/core.ui/font/bitmap_font_file.hpp>
Public Member Functions | |
| BitmapGlyphData (unsigned int width, unsigned int height, vector< byte > bitmap) | |
| Constructor. | |
| ~BitmapGlyphData () override | |
| Destructor. | |
Public Member Functions inherited from kanzi::FontFile::GlyphData | |
| const byte * | getBitmapData () const |
| Returns the pointer to bitmap data. | |
| unsigned int | getBytesPerPixel () const |
| Bytes per pixel for getBitmapData(): 4 when isColor(), otherwise 1. | |
| unsigned int | getHeight () const |
| Returns the height of a bitmap. | |
| unsigned int | getWidth () const |
| Returns the width of a bitmap. | |
| GlyphData (unsigned int width, unsigned int height, const byte *bitmap) | |
| Constructor. | |
| bool | isColor () const |
| Returns whether this glyph bitmap is color (RGBA8) rather than grayscale coverage. | |
| virtual | ~GlyphData () |
| Destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from kanzi::FontFile::GlyphData | |
| void | markColor (bool isColor) |
| Marks this glyph as RGBA color data (used by FreeType color emoji path). | |
Derived GlyphData implementation for bitmap fonts.
Releases the bitmap data on destruction.
|
explicit |
Constructor.
| width | Width of the bitmap. |
| height | Height of the bitmap. |
| bitmap | Pointer to the bitmap. |
|
override |
Destructor.