platform-game/Forráskód/modules/auxiliary/unicodePrint.h
Andras Schmelczer c9b542eccf
All checks were successful
Build & deploy web version / Build WebAssembly & deploy (push) Successful in 1m8s
Migrate to SDL2 and deploy as WASM
2026-08-09 20:00:56 +01:00

19 lines
714 B
C

#ifndef UNICODEPRINT_H_INCLUDED
#define UNICODEPRINT_H_INCLUDED
#include "../global.h"
typedef enum fontType {
tiny, small, smallBold, large
} fontType;
void openFonts();
void freeFonts();
bool isValidChar(wchar_t chr);
wchar_t* concatUnicode(const wchar_t a[], const wchar_t b[]);
void unicodePrintCentered(wchar_t textToWrite[], int x, int y, fontType fontType);
void utf8PrintCentered(const char* textToWrite, int x, int y, fontType fontType);
int wideToUtf8(const wchar_t* source, char* destination, int destinationSize);
int utf8ToWide(const char* source, wchar_t* destination, int destinationSize);
#endif // UNICODEPRINT_H_INCLUDED