Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
font.h
Go to the documentation of this file.
1/*
2 * Copyright 2024 dogtopus
3 * SPDX-License-Identifier: MIT
4 */
5
10
11#ifndef __MUTEKI_DRAW_FONT_H__
12#define __MUTEKI_DRAW_FONT_H__
13
14#include "types/font.h"
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
28extern unsigned short GetCharWidth(UTF16 c, unsigned short font_type);
29
37extern unsigned short GetFontHeight(unsigned short font_type);
38
47extern unsigned short GetFontWidth(unsigned int c, font_info_t *font, unsigned short *out_glyph_extent);
48
49#ifdef __cplusplus
50} // extern "C"
51#endif
52
53#endif // __MUTEKI_DRAW_FONT_H__
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition common.h:54
unsigned short GetCharWidth(UTF16 c, unsigned short font_type)
Get the width of the character c used in font_type.
unsigned short GetFontHeight(unsigned short font_type)
Get the height of the font font_type.
unsigned short GetFontWidth(unsigned int c, font_info_t *font, unsigned short *out_glyph_extent)
Calculate the width of a glyph.
Font management data types.
struct font_info_s font_info_t
Font rendering routine common states.