Font

Undocumented in source.

Constructors

this
this(SDL_Renderer* renderer)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

clear_chars_cache
void clear_chars_cache()
Undocumented in source. Be warned that the author may not have intended to support it.
clear_lines_cache
void clear_lines_cache()
Undocumented in source. Be warned that the author may not have intended to support it.
get_char_from_cache
auto get_char_from_cache(string chr, int size, SDL_Color color, size_t f)
Undocumented in source. Be warned that the author may not have intended to support it.
get_line_from_cache
auto get_line_from_cache(string text, int size, int line_width, int line_height, SDL_Color color, ushort[] attrs, ssize_t start_pos, ssize_t end_pos)
Undocumented in source. Be warned that the author may not have intended to support it.
get_line_from_cache
auto get_line_from_cache(dchar[] text, int cols, int rows, int size, int line_height, SDL_Color color, ushort[] attrs, ssize_t start_pos, ssize_t end_pos)
Undocumented in source. Be warned that the author may not have intended to support it.
get_size_of_line
SDL_Rect get_size_of_line(inout(char)[] text, int size, long line_width, int line_height, SDL_Color color)
Undocumented in source. Be warned that the author may not have intended to support it.
get_size_of_line
SDL_Rect get_size_of_line(int cols, int rows, int size, SDL_Color color)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

attr_textures
SDL_Texture*[16] attr_textures;
Undocumented in source.
chars_cache
Texture_Tick[CharSize] chars_cache;
Undocumented in source.
face
FT_Face[5] face;
Undocumented in source.
font
TTF_Font*[16][5] font;
Undocumented in source.
last_chars_cache_use
long last_chars_cache_use;
Undocumented in source.
last_lines_cache_use
long last_lines_cache_use;
Undocumented in source.
library
FT_Library library;
Undocumented in source.
lines_cache
Texture_Tick[LineSize] lines_cache;
Undocumented in source.
renderer
SDL_Renderer* renderer;
Undocumented in source.

Meta