22#ifndef FC__GUISTRING_H
23#define FC__GUISTRING_H
26#ifdef SDL2_PLAIN_INCLUDE
31#include <SDL2/SDL_ttf.h>
41#define SF_CENTER_RIGHT 0x20
93#define FREEUTF8STR( pstr ) \
96 FC_FREE(pstr->text); \
97 unload_font(pstr->ptsize); \
103#define create_utf8_from_char(string_in, ptsize) \
104 (string_in) == NULL ? \
105 create_utf8_str(NULL, 0, ptsize) : \
106 copy_chars_to_utf8_str(create_utf8_str(NULL, 0, ptsize), string_in)
108#define create_utf8_from_char_fonto(string_in, fonto) \
109 (string_in) == NULL ? \
110 create_utf8_str_fonto(NULL, 0, fonto) : \
111 copy_chars_to_utf8_str(create_utf8_str_fonto(NULL, 0, fonto), string_in)
struct canvas int int struct sprite int int int width
void change_ptsize_utf8(utf8_str *pstr, Uint16 new_ptsize)
void utf8_str_size(utf8_str *pstr, SDL_Rect *fill)
utf8_str * copy_chars_to_utf8_str(utf8_str *pstr, const char *pchars)
SDL_Surface * create_text_surf_from_utf8(utf8_str *pstr)
void change_fonto_utf8(utf8_str *pstr, enum font_origin origin)
void unload_font(Uint16 ptsize)
utf8_str * create_utf8_str(char *in_text, size_t n_alloc, Uint16 ptsize)
utf8_str * create_utf8_str_fonto(char *in_text, size_t n_alloc, enum font_origin origin)
int write_utf8(SDL_Surface *dest, Sint16 x, Sint16 y, utf8_str *pstr)
bool convert_utf8_str_to_const_surface_width(utf8_str *pstr, int width)
void free_font_system(void)
SDL_Surface * create_text_surf_smaller_than_w(utf8_str *pstr, int w)