This commit is contained in:
olikraus
2026-08-23 10:24:20 +02:00
parent ce4621f04b
commit ea1c17277a
2 changed files with 10 additions and 5 deletions
+2 -1
View File
@@ -368,4 +368,5 @@ https://github.com/olikraus/u8g2 ChangeLog
* SBN1661 80x32 (issue 2776)
* UC1698 240x64 (issue 2777)
* Bugfix: Error with MUI include (C++ and missing U8g2 include) (issue 2730)
* Fix flipmode for SSD1362z 256x64 (PR 2786)
* Added isGlyph() to the C++ API (issue 2797)
+8 -4
View File
@@ -284,10 +284,10 @@ class U8G2
/*
uint8_t u8g2_IsGlyph(u8g2_t *u8g2, uint16_t requested_encoding);
int8_t u8g2_GetGlyphWidth(u8g2_t *u8g2, uint16_t requested_encoding);
u8g2_uint_t u8g2_GetStrWidth(u8g2_t *u8g2, const char *s);
u8g2_uint_t u8g2_GetUTF8Width(u8g2_t *u8g2, const char *str);
uint8_t u8g2_IsGlyph(u8g2_t *u8g2, uint16_t requested_encoding); --> Added
int8_t u8g2_GetGlyphWidth(u8g2_t *u8g2, uint16_t requested_encoding); --> Added
u8g2_uint_t u8g2_GetStrWidth(u8g2_t *u8g2, const char *s); --> Already added
u8g2_uint_t u8g2_GetUTF8Width(u8g2_t *u8g2, const char *str); --> Already added
*/
u8g2_uint_t drawGlyph(u8g2_uint_t x, u8g2_uint_t y, uint16_t encoding) { return u8g2_DrawGlyph(&u8g2, x, y, encoding); }
@@ -303,6 +303,10 @@ u8g2_uint_t u8g2_GetUTF8Width(u8g2_t *u8g2, const char *str);
u8g2_uint_t getStrWidth(const char *s) { return u8g2_GetStrWidth(&u8g2, s); }
u8g2_uint_t getUTF8Width(const char *s) { return u8g2_GetUTF8Width(&u8g2, s); }
uint8_t isGlyph(uint16_t encoding) { return u8g2_IsGlyph(&u8g2, encoding); }
int8_t getGlyphWidth(uint16_t encoding) { return u8g2_GetGlyphWidth(&u8g2, encoding); }
int8_t getXOffsetGlyph(uint16_t encoding) { return u8g2_GetXOffsetGlyph(&u8g2, encoding); }
int8_t getXOffsetUTF8(const char *utf8) { return u8g2_GetXOffsetUTF8(&u8g2, utf8); }