Changed rencache to store font tab_width with font command

Fixes bug where text would be drawn/cached wrongly if more than one tab_width
was used in a given frame
This commit is contained in:
rxi
2020-09-05 15:09:54 +01:00
parent 2caa7f182d
commit 878c94a334
3 changed files with 10 additions and 0 deletions
+1
View File
@@ -22,6 +22,7 @@ void ren_free_image(RenImage *image);
RenFont* ren_load_font(const char *filename, float size);
void ren_free_font(RenFont *font);
void ren_set_font_tab_width(RenFont *font, int n);
int ren_get_font_tab_width(RenFont *font);
int ren_get_font_width(RenFont *font, const char *text);
int ren_get_font_height(RenFont *font);