2023-04-04 12:21:17 +00:00
|
|
|
// Font stubs
|
|
|
|
|
|
|
|
#include "font.h"
|
|
|
|
|
2023-04-20 03:56:59 +00:00
|
|
|
uint8_t *FontLoadFileToMemory(const char *file_path_name, int32_t *out_bytes) {
|
|
|
|
(void)file_path_name;
|
|
|
|
(void)out_bytes;
|
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
2024-05-11 08:27:08 +00:00
|
|
|
int32_t FontLoad(const uint8_t *content_original, int32_t content_bytes, int32_t default_pixel_height, int32_t which_font, int32_t &options) {
|
2023-04-12 23:12:53 +00:00
|
|
|
(void)content_original;
|
|
|
|
(void)content_bytes;
|
|
|
|
(void)default_pixel_height;
|
|
|
|
(void)which_font;
|
|
|
|
(void)options;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void FontFree(int32_t fh) { (void)fh; }
|
|
|
|
|
|
|
|
int32_t FontWidth(int32_t fh) {
|
|
|
|
(void)fh;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-06-05 02:10:09 +00:00
|
|
|
bool FontRenderTextUTF32(int32_t fh, const char32_t *codepoint, int32_t codepoints, int32_t options, uint8_t **out_data, int32_t *out_x, int32_t *out_y) {
|
2023-04-12 23:12:53 +00:00
|
|
|
(void)fh;
|
2023-04-04 12:21:17 +00:00
|
|
|
(void)codepoint;
|
|
|
|
(void)codepoints;
|
|
|
|
(void)options;
|
|
|
|
(void)out_data;
|
|
|
|
(void)out_x;
|
|
|
|
(void)out_y;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2023-04-19 11:32:18 +00:00
|
|
|
bool FontRenderTextASCII(int32_t fh, const uint8_t *codepoint, int32_t codepoints, int32_t options, uint8_t **out_data, int32_t *out_x, int32_t *out_y) {
|
2023-04-12 23:12:53 +00:00
|
|
|
(void)fh;
|
2023-04-04 12:21:17 +00:00
|
|
|
(void)codepoint;
|
|
|
|
(void)codepoints;
|
|
|
|
(void)options;
|
|
|
|
(void)out_data;
|
|
|
|
(void)out_x;
|
|
|
|
(void)out_y;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2024-06-05 02:10:09 +00:00
|
|
|
int32_t FontPrintWidthUTF32(int32_t fh, const char32_t *codepoint, int32_t codepoints) {
|
2023-04-19 11:32:18 +00:00
|
|
|
(void)fh;
|
|
|
|
(void)codepoint;
|
|
|
|
(void)codepoints;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
int32_t FontPrintWidthASCII(int32_t fh, const uint8_t *codepoint, int32_t codepoints) {
|
2023-04-12 23:12:53 +00:00
|
|
|
(void)fh;
|
|
|
|
(void)codepoint;
|
|
|
|
(void)codepoints;
|
2023-04-04 12:21:17 +00:00
|
|
|
return 0;
|
|
|
|
}
|