From 27e03a5c693e58a482629af041579c5c87b6cebb Mon Sep 17 00:00:00 2001 From: pommicket Date: Wed, 19 Jul 2023 15:54:54 -0400 Subject: compute kerning from glyph indices for better performance --- text.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'text.h') 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]; -- cgit v1.2.3