added initial support for kerning tables
This commit is contained in:
1 parent
2710f4e36a
commit
be343003fc
2 files changed
+102
-20
No files matched your search
+2
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user