Merge remote-tracking branch 'rxi/master'

This commit is contained in:
Francesco Abbate
2020-11-17 10:24:27 +01:00
4 changed files with 13 additions and 1 deletions
+6
View File
@@ -183,6 +183,12 @@ void ren_set_font_tab_width(RenFont *font, int n) {
}
int ren_get_font_tab_width(RenFont *font) {
GlyphSet *set = get_glyphset(font, '\t');
return set->glyphs['\t'].xadvance;
}
int ren_get_font_width(RenFont *font, const char *text) {
int x = 0;
const char *p = text;