diff options
author | Uros Majstorovic <majstor@majstor.org> | 2024-09-04 20:21:55 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2024-09-04 20:21:55 +0200 |
commit | afd07f4bc007ddf4a9e036cd9f4c2db800719653 (patch) | |
tree | b3c17ff70fb69636bb7279de0392ae5a21ae68f1 /fw/fe310/eos/eve/eve_font.h | |
parent | 16481ee83d7bde7a28dc8b0d767e0e59d78eb678 (diff) |
support for unknown character in eve font
Diffstat (limited to 'fw/fe310/eos/eve/eve_font.h')
-rw-r--r-- | fw/fe310/eos/eve/eve_font.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fw/fe310/eos/eve/eve_font.h b/fw/fe310/eos/eve/eve_font.h index c098519..c384877 100644 --- a/fw/fe310/eos/eve/eve_font.h +++ b/fw/fe310/eos/eve/eve_font.h @@ -10,7 +10,7 @@ typedef struct EVEFont { } EVEFont; void eve_font_init(EVEFont *font, uint8_t font_id); -uint8_t eve_font_ch_w(EVEFont *font, ucp_t ch); -uint16_t eve_font_str_w(EVEFont *font, utf8_t *str); -uint16_t eve_font_buf_w(EVEFont *font, utf8_t *buf, uint16_t buf_len); +int eve_font_ch_w(EVEFont *font, ucp_t ch); +int eve_font_str_w(EVEFont *font, utf8_t *str, int *str_w, size_t *str_len); +int eve_font_buf_w(EVEFont *font, utf8_t *buf, size_t buf_len, int *str_w, size_t *str_len); uint8_t eve_font_h(EVEFont *font); |