summaryrefslogtreecommitdiff
path: root/src/ui/text.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-06 16:02:41 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-06 16:03:17 +0200
commit5b80af0e983db5e3d09e207c9fce6790b53dea4d (patch)
tree614a227b3aeade6a2ff3b43424c4f3ea45adc1fc /src/ui/text.h
parentaf0aaf36dcde341d5eb43214297df71eefc90829 (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.h3
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);
161void setHeadingFont_Text (enum iTextFont font); 161void setHeadingFont_Text (enum iTextFont font);
162void setContentFontSize_Text (float fontSizeFactor); /* affects all except `default*` fonts */ 162void setContentFontSize_Text (float fontSizeFactor); /* affects all except `default*` fonts */
163void resetFonts_Text (void); 163void resetFonts_Text (void);
164int numPendingGlyphs_Text (void); 164size_t numPendingGlyphs_Text (void);
165void rasterizeSomePendingGlyphs_Text (void);
165 166
166int lineHeight_Text (int fontId); 167int lineHeight_Text (int fontId);
167iInt2 measure_Text (int fontId, const char *text); 168iInt2 measure_Text (int fontId, const char *text);