diff options
author | pommicket <pommicket@gmail.com> | 2023-07-19 15:54:54 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-07-19 19:03:44 -0400 |
commit | 27e03a5c693e58a482629af041579c5c87b6cebb (patch) | |
tree | 1f70ada22f574a8a351558469d551d7de09a13f1 /text.h | |
parent | 37f6dd7f1027e82fd12c12fca6ff0bae00e4004c (diff) |
compute kerning from glyph indices for better performance
Diffstat (limited to 'text.h')
-rw-r--r-- | text.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -41,8 +41,8 @@ typedef struct { /// largest y achieved (for computing size) double y_largest; - /// previous character rendered, or 0 if this is the first - char32_t prev_char; + /// index of previous glyph rendered, or 0 if this is the first + int prev_glyph; /// used for forwards-compatibility char _reserved[64]; |