diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-06 16:02:41 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-06 16:03:17 +0200 |
commit | 5b80af0e983db5e3d09e207c9fce6790b53dea4d (patch) | |
tree | 614a227b3aeade6a2ff3b43424c4f3ea45adc1fc /src/ui/text.h | |
parent | af0aaf36dcde341d5eb43214297df71eefc90829 (diff) |
Rasterize a few glyphs on every frame
Also various widget fixes/improvements.
Diffstat (limited to 'src/ui/text.h')
-rw-r--r-- | src/ui/text.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); | |||
161 | void setHeadingFont_Text (enum iTextFont font); | 161 | void setHeadingFont_Text (enum iTextFont font); |
162 | void setContentFontSize_Text (float fontSizeFactor); /* affects all except `default*` fonts */ | 162 | void setContentFontSize_Text (float fontSizeFactor); /* affects all except `default*` fonts */ |
163 | void resetFonts_Text (void); | 163 | void resetFonts_Text (void); |
164 | int numPendingGlyphs_Text (void); | 164 | size_t numPendingGlyphs_Text (void); |
165 | void rasterizeSomePendingGlyphs_Text (void); | ||
165 | 166 | ||
166 | int lineHeight_Text (int fontId); | 167 | int lineHeight_Text (int fontId); |
167 | iInt2 measure_Text (int fontId, const char *text); | 168 | iInt2 measure_Text (int fontId, const char *text); |