@@ -14,7 +14,7 @@
|
||||
#include "spritecache.h"
|
||||
|
||||
/** Glyphs are characters from a font. */
|
||||
typedef uint32 GlyphID;
|
||||
typedef uint32_t GlyphID;
|
||||
static const GlyphID SPRITE_GLYPH = 1U << 30;
|
||||
|
||||
extern int font_height_cache[FS_END]; ///< Cache of font heights
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
* @param key The key to map to.
|
||||
* @param sprite The sprite that is being mapped.
|
||||
*/
|
||||
virtual void SetUnicodeGlyph(WChar key, SpriteID sprite) = 0;
|
||||
virtual void SetUnicodeGlyph(char32_t key, SpriteID sprite) = 0;
|
||||
|
||||
/** Initialize the glyph map */
|
||||
virtual void InitializeUnicodeGlyphMap() = 0;
|
||||
@@ -116,7 +116,7 @@ public:
|
||||
* @param key The character.
|
||||
* @return The glyph ID used to draw the character.
|
||||
*/
|
||||
virtual GlyphID MapCharToGlyph(WChar key) = 0;
|
||||
virtual GlyphID MapCharToGlyph(char32_t key) = 0;
|
||||
|
||||
/**
|
||||
* Read a font table from the font.
|
||||
@@ -124,7 +124,7 @@ public:
|
||||
* @param length The length of the read data.
|
||||
* @return The loaded table data.
|
||||
*/
|
||||
virtual const void *GetFontTable(uint32 tag, size_t &length) = 0;
|
||||
virtual const void *GetFontTable(uint32_t tag, size_t &length) = 0;
|
||||
|
||||
/**
|
||||
* Get the native OS font handle, if there is one.
|
||||
|
Reference in New Issue
Block a user