diff options
author | gornekich <n.gorbadey@gmail.com> | 2021-07-08 23:41:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-08 23:41:34 +0300 |
commit | 20fe544b4f53e637667a17d25c3e4190405aefc9 (patch) | |
tree | d4d5fb6b97fe058263cd71d7f8d1b40039ac25b9 /applications/gui/canvas.c | |
parent | 9f6e14d0054671135ce4319d001e9397ffeb3c3a (diff) |
[FL-1501] NFC: read Mifare Ultralight (#571)
* nfc: add scripts menu scene
* canvas: add glyph width api
* app_scene: add state to Scene template
* gui: introduce TextBox view
* nfc: add mifare ultralight read scenes
* nfc: add mifare ultralight menu scene
* nfc: fix scene functions declaration
* Gui: use size_t for sizes.
Co-authored-by: あく <alleteam@gmail.com>
Diffstat (limited to 'applications/gui/canvas.c')
-rw-r--r-- | applications/gui/canvas.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/applications/gui/canvas.c b/applications/gui/canvas.c index 6d5b5e6a..3e4d0d85 100644 --- a/applications/gui/canvas.c +++ b/applications/gui/canvas.c @@ -176,6 +176,11 @@ uint16_t canvas_string_width(Canvas* canvas, const char* str) { return u8g2_GetStrWidth(&canvas->fb, str); } +uint8_t canvas_glyph_width(Canvas* canvas, char symbol) { + furi_assert(canvas); + return u8g2_GetGlyphWidth(&canvas->fb, symbol); +} + void canvas_draw_icon_animation( Canvas* canvas, uint8_t x, |