added drawHB to cpp code, #2656

This commit is contained in:
olikraus
2025-06-14 13:08:54 +02:00
parent 6805dcd427
commit 156655af6f
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -306,7 +306,7 @@ u8g2_uint_t u8g2_GetUTF8Width(u8g2_t *u8g2, const char *str);
int8_t getXOffsetGlyph(uint16_t encoding) { return u8g2_GetXOffsetGlyph(&u8g2, encoding); }
int8_t getXOffsetUTF8(const char *utf8) { return u8g2_GetXOffsetUTF8(&u8g2, utf8); }
void drawHB(u8g2_uint_t x, u8g2_uint_t y, const unsigned char *data) { return u8g2_DrawHB(&u8g2, x, y, data); }
// not required any more, enable UTF8 for print
//void printUTF8(const char *s) { tx += u8g2_DrawUTF8(&u8g2, tx, ty, s); }
+3
View File
@@ -1951,6 +1951,9 @@ void u8g2_SetFontRefHeightText(u8g2_t *u8g2);
void u8g2_SetFontRefHeightExtendedText(u8g2_t *u8g2);
void u8g2_SetFontRefHeightAll(u8g2_t *u8g2);
void u8g2_DrawHB(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, const unsigned char *data);
/*==========================================*/
/* u8log_u8g2.c */
void u8g2_DrawLog(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, u8log_t *u8log);
+3
View File
@@ -1593,6 +1593,9 @@ void u8g2_SetFontDirection(u8g2_t *u8g2, uint8_t dir)
Limitation:
Glyph delta must be lower than 128, this bascially means, that the glyph size is limited to
hight/width of 128 pixel
Further details:
https://github.com/olikraus/u8g2/issues/2656
*/
void u8g2_DrawHB(u8g2_t *u8g2, u8g2_uint_t x, u8g2_uint_t y, const unsigned char *data)