CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
Fonts.h File Reference
#include <cstdint>
#include <gfxfont.h>

Go to the source code of this file.

Namespaces

namespace  cdc
namespace  cdc::ui
 Centralized key-code constants for cdc_views.

Enumerations

enum class  cdc::ui::FontId : uint8_t {
  cdc::ui::Builtin = 0 , cdc::ui::Bold9pt = 1 , cdc::ui::Bold12pt = 2 , cdc::ui::Bold18pt = 3 ,
  cdc::ui::Bold24pt = 4
}
 Canonical font identifier shared by firmware UI and plugin host API. More...

Functions

const GFXfont * cdc::ui::getGfxFont (FontId id)
 Resolves a FontId to its underlying GFX font pointer.
const GFXfont * cdc::ui::getGfxFont (uint8_t id)
 Integer overload, for plugin/host-API bridges that ship uint8_t.

Variables

constexpr uint8_t cdc::ui::kFontIdCount = 5
 Number of entries in the canonical font table.