added initial support for kerning tables

This commit is contained in:
farisawan-2000 committed 2020-12-28 17:40:57 -05:00
1 parent 2710f4e36a
commit be343003fc
2 files changed
+102 -20

No files matched your search

+2 -1
View File
@@ -72,7 +72,8 @@ void s2d_snprint(int x, int y, const char *str, uObjMtx *buf, int len) {
break;
default:
if (current_char != '\0') {
draw_s2d_glyph(current_char, (x += (s2d_kerning_table[current_char] * myScale)), y, (buf++));
draw_s2d_glyph(current_char, x, y, (buf++));
(x += (s2d_kerning_table[current_char] * myScale));
}
}
if (*p == '\0') break;