summaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-07-19 15:54:54 -0400
committerpommicket <pommicket@gmail.com>2023-07-19 19:03:44 -0400
commit27e03a5c693e58a482629af041579c5c87b6cebb (patch)
tree1f70ada22f574a8a351558469d551d7de09a13f1 /text.h
parent37f6dd7f1027e82fd12c12fca6ff0bae00e4004c (diff)
compute kerning from glyph indices for better performance
Diffstat (limited to 'text.h')
-rw-r--r--text.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/text.h b/text.h
index ff07e79..8b2f133 100644
--- a/text.h
+++ b/text.h
@@ -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];