跳转至

lib/graphic/widget/text_config.h

Text widget font configuration and selection. More...

Detailed Description

Text widget font configuration and selection.

Provides font size enumeration, selection functions, and configuration for text rendering. Supports multiple font sizes (6x8, 8x16) with compile-time selection via resource configuration.

Source code

#pragma once
#include "base/size.h"
#include "resource/config.h"

typedef enum
{
#if ENABLE_ASCII_6x8_SOURCES
    ASCII_6x8,
#endif

#if ENABLE_ASCII_8x16_SOURCES
    ASCII_8x16,
#endif

    NO_ASCII_SIZE
} Ascii_Font_Size;

typedef enum
{
    Unicode_16x16
} Unicode_Font_Size;

#define UNSUPPORTIVE_FONT_SOURCE ((void*) 0)

uint8_t* __select_from_ascii_font_size(const Ascii_Font_Size s, const char ch);

CFBDGraphicSize __fetch_font_size(const Ascii_Font_Size s);

Updated on 2026-02-03 at 13:21:55 +0000