Muteki
EABI code execution on Besta® RTOS devices.
Toggle main menu visibility
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
17
extern
"C"
{
18
#endif
19
28
extern
unsigned
short
GetCharWidth
(
UTF16
c,
unsigned
short
font_type);
29
37
extern
unsigned
short
GetFontHeight
(
unsigned
short
font_type);
38
47
extern
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__
UTF16
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition
common.h:54
GetCharWidth
unsigned short GetCharWidth(UTF16 c, unsigned short font_type)
Get the width of the character c used in font_type.
GetFontHeight
unsigned short GetFontHeight(unsigned short font_type)
Get the height of the font font_type.
GetFontWidth
unsigned short GetFontWidth(unsigned int c, font_info_t *font, unsigned short *out_glyph_extent)
Calculate the width of a glyph.
font.h
Font management data types.
font_info_t
struct font_info_s font_info_t
Font rendering routine common states.
include
muteki
draw
font.h
Generated by
1.18.0