muteki
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
11#ifndef __MUTEKI_UI_FONT_H__
12#define __MUTEKI_UI_FONT_H__
13
14#include <muteki/ui/common.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20//extern int GetFontWidth(int32_t type);
21
29extern short GetCharWidth(UTF16 c, uint8_t font_type);
30
37extern int GetFontHeight(uint8_t font_type);
38
39#ifdef __cplusplus
40} // extern "C"
41#endif
42
43#endif // __MUTEKI_UI_FONT_H__
#define UTF16
"Portable" Besta UTF-16 type used by other headers.
Definition common.h:54
int GetFontHeight(uint8_t font_type)
Get the height of the font font_type.
short GetCharWidth(UTF16 c, uint8_t font_type)
Get the width of the character c used in font_type.
Common data structures and definitions for the UI subsystem.