CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
Fonts.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5#include <gfxfont.h>
6
7namespace cdc::ui {
8
15enum class FontId : uint8_t {
16 Builtin = 0,
17 Bold9pt = 1,
21};
22
24constexpr uint8_t kFontIdCount = 5;
25
33const GFXfont* getGfxFont(FontId id);
34
36const GFXfont* getGfxFont(uint8_t id);
37
38} // namespace cdc::ui
Centralized key-code constants for cdc_views.
Definition IModule.h:8
const GFXfont * getGfxFont(FontId id)
Resolves a FontId to its underlying GFX font pointer.
Definition Fonts.cpp:26
constexpr uint8_t kFontIdCount
Number of entries in the canonical font table.
Definition Fonts.h:24
FontId
Canonical font identifier shared by firmware UI and plugin host API.
Definition Fonts.h:15
@ Bold12pt
FreeMonoBold 12pt. Latin-1 indexed; same mapping path as Bold9pt.
Definition Fonts.h:18
@ Bold24pt
FreeMonoBold 24pt. ASCII only (0x20..0x7E).
Definition Fonts.h:20
@ Builtin
Adafruit-GFX 6x8. Umlauts present at CP437 codepoints (0x84..0x9C). Pass raw CP437 bytes to draw them...
Definition Fonts.h:16
@ Bold9pt
FreeMonoBold 9pt. Latin-1 indexed; render via drawCp437Text() to map CP437 input.
Definition Fonts.h:17
@ Bold18pt
FreeMonoBold 18pt. ASCII only (0x20..0x7E).
Definition Fonts.h:19