Text Configuration¶
Module: Text Widget System
Font size and text rendering configuration. More...
Files¶
| Name |
|---|
| lib/graphic/widget/text_config.h Text widget font configuration and selection. |
Types¶
| Name | |
|---|---|
| enum | Ascii_Font_Size { NO_ASCII_SIZE} Enumeration of available ASCII font sizes. |
| enum | Unicode_Font_Size { Unicode_16x16} Enumeration of available Unicode font sizes. |
Functions¶
| Name | |
|---|---|
| uint8_t * | __select_from_ascii_font_size(const Ascii_Font_Size s, const char ch) |
| CFBDGraphicSize | __fetch_font_size(const Ascii_Font_Size s) |
Defines¶
| Name | |
|---|---|
| UNSUPPORTIVE_FONT_SOURCE |
Detailed Description¶
Font size and text rendering configuration.
Compile-time configuration system for text resources, controlled by resource/config.h macros.
Types Documentation¶
enum Ascii_Font_Size¶
| Enumerator | Value | Description |
|---|---|---|
| NO_ASCII_SIZE | Sentinel value indicating no valid font size available. |
Enumeration of available ASCII font sizes.
Specifies available monospace font sizes for text rendering. Enabled fonts are determined at compile-time via:
ENABLE_ASCII_6x8_SOURCES(6x8 pixel font)ENABLE_ASCII_8x16_SOURCES(8x16 pixel font) Current implementation supports:
6x8: 6 pixels wide x 8 pixels tall per character
-
8x16: 8 pixels wide x 16 pixels tall per character To add more fonts:
-
Provide font bitmap data source
- Implement __select_from_ascii_font_size() for new size
- Add enable macro in resource/config.h__select_from_ascii_font_size()
enum Unicode_Font_Size¶
| Enumerator | Value | Description |
|---|---|---|
| Unicode_16x16 | 16x16 pixel Unicode font - for CJK and other wide characters |
Enumeration of available Unicode font sizes.
See: Ascii_Font_Size
Note: Unicode support requires:
- Additional memory for character data (Chinese, Japanese, etc.)
- Larger display for readable text
- Future implementation phase
Specifies Unicode font sizes for international character support. Currently supports 16x16 pixel Unicode characters.
Functions Documentation¶
function __select_from_ascii_font_size¶
function __fetch_font_size¶
Macros Documentation¶
define UNSUPPORTIVE_FONT_SOURCE¶
Updated on 2026-02-03 at 13:21:55 +0000