From 5b80af0e983db5e3d09e207c9fce6790b53dea4d Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 6 Mar 2021 16:02:41 +0200 Subject: Rasterize a few glyphs on every frame Also various widget fixes/improvements. --- src/ui/text.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ui/text.h') diff --git a/src/ui/text.h b/src/ui/text.h index 1118882d..acce286b 100644 --- a/src/ui/text.h +++ b/src/ui/text.h @@ -161,7 +161,8 @@ void setContentFont_Text (enum iTextFont font); void setHeadingFont_Text (enum iTextFont font); void setContentFontSize_Text (float fontSizeFactor); /* affects all except `default*` fonts */ void resetFonts_Text (void); -int numPendingGlyphs_Text (void); +size_t numPendingGlyphs_Text (void); +void rasterizeSomePendingGlyphs_Text (void); int lineHeight_Text (int fontId); iInt2 measure_Text (int fontId, const char *text); -- cgit v1.2.3