VMUPro SDK v1.0.0
Application Development SDK for the VMUPro
|
VMUPro SDK Font and Text Rendering API. More...
#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
Data Structures | |
struct | vmupro_font_info_t |
Font information structure. More... | |
Macros | |
#define | VMUPRO_FONT_SMALL VMUPRO_FONT_SANS_11x13 |
Alias for small readable font. | |
#define | VMUPRO_FONT_MEDIUM VMUPRO_FONT_SANS_15x17 |
Alias for medium readable font. | |
#define | VMUPRO_FONT_LARGE VMUPRO_FONT_QUANTICO_25x29 |
Alias for large readable font. | |
#define | VMUPRO_FONT_DEFAULT VMUPRO_FONT_MEDIUM |
Default font for applications. | |
Enumerations | |
enum | vmupro_font_id_t { VMUPRO_FONT_TINY_6x8 = 0 , VMUPRO_FONT_MONO_7x13 , VMUPRO_FONT_MONO_9x15 , VMUPRO_FONT_SANS_11x13 , VMUPRO_FONT_MONO_13x21 , VMUPRO_FONT_MONO_13x24 , VMUPRO_FONT_SANS_15x17 , VMUPRO_FONT_OPEN_SANS_15x18 , VMUPRO_FONT_MONO_16x31 , VMUPRO_FONT_MONO_17x30 , VMUPRO_FONT_QUANTICO_19x21 , VMUPRO_FONT_SANS_24x28 , VMUPRO_FONT_QUANTICO_25x29 , VMUPRO_FONT_QUANTICO_29x33 , VMUPRO_FONT_QUANTICO_32x37 , VMUPRO_FONT_COUNT } |
Font index enumeration for VMUPro SDK. More... | |
Functions | |
void | vmupro_set_font (vmupro_font_id_t font_id) |
void | vmupro_draw_text (const char *text, int x, int y, uint16_t color, uint16_t bg_color) |
int | vmupro_calc_text_length (const char *text) |
vmupro_font_info_t | vmupro_get_font_info (vmupro_font_id_t font_id) |
VMUPro SDK Font and Text Rendering API.
This header provides font management and text rendering functionality for the VMUPro device. It includes predefined bitmap fonts and functions for setting fonts, drawing text, and calculating text dimensions.
Definition in file vmupro_fonts.h.
#define VMUPRO_FONT_DEFAULT VMUPRO_FONT_MEDIUM |
Default font for applications.
Definition at line 53 of file vmupro_fonts.h.
#define VMUPRO_FONT_LARGE VMUPRO_FONT_QUANTICO_25x29 |
Alias for large readable font.
Definition at line 52 of file vmupro_fonts.h.
#define VMUPRO_FONT_MEDIUM VMUPRO_FONT_SANS_15x17 |
Alias for medium readable font.
Definition at line 51 of file vmupro_fonts.h.
#define VMUPRO_FONT_SMALL VMUPRO_FONT_SANS_11x13 |
Alias for small readable font.
Definition at line 50 of file vmupro_fonts.h.
enum vmupro_font_id_t |
Font index enumeration for VMUPro SDK.
Defines all available fonts in the system. Fonts are organized by size from smallest to largest. Use these enum values to select fonts.
Definition at line 30 of file vmupro_fonts.h.
int vmupro_calc_text_length | ( | const char * | text | ) |
void vmupro_draw_text | ( | const char * | text, |
int | x, | ||
int | y, | ||
uint16_t | color, | ||
uint16_t | bg_color | ||
) |
vmupro_font_info_t vmupro_get_font_info | ( | vmupro_font_id_t | font_id | ) |
void vmupro_set_font | ( | vmupro_font_id_t | font_id | ) |