diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-06 12:16:43 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-10-06 12:16:43 +0300 |
commit | 61a3dc017067be43472dadb7909094aa04d1fe9d (patch) | |
tree | 18b87895489844b4e516f79cd1588038f1d49494 /src/ui/uploadwidget.c | |
parent | f6a54d5375aab9c41af3f7c8a5e8fcbd1e0c9287 (diff) |
Revised runtime font management
The built-in fonts are loaded via FontPack, and the font table is now constructed dynamically based on available fonts.
A full set of variants (style, size) are prepared for each font, but some of the data gets allocated lazily when needed.
GmRun needed a larger allocation for fonts, so now all the fields are combined into a single bit field.
TODO: Glyph scaling, vertical offsets, and symbol lookup are still not fully working.
Diffstat (limited to 'src/ui/uploadwidget.c')
-rw-r--r-- | src/ui/uploadwidget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/uploadwidget.c b/src/ui/uploadwidget.c index ba7545fd..ded8d7f8 100644 --- a/src/ui/uploadwidget.c +++ b/src/ui/uploadwidget.c | |||
@@ -255,7 +255,7 @@ void init_UploadWidget(iUploadWidget *d) { | |||
255 | setFlags_Widget(as_Widget(d->token), expand_WidgetFlag, iTrue); | 255 | setFlags_Widget(as_Widget(d->token), expand_WidgetFlag, iTrue); |
256 | setFocus_Widget(as_Widget(d->input)); | 256 | setFocus_Widget(as_Widget(d->input)); |
257 | } | 257 | } |
258 | setFont_InputWidget(d->input, iosevka_FontId); | 258 | setFont_InputWidget(d->input, FONT_ID(monospace_FontId, regular_FontStyle, uiNormal_FontSize)); |
259 | setUseReturnKeyBehavior_InputWidget(d->input, iFalse); /* traditional text editor */ | 259 | setUseReturnKeyBehavior_InputWidget(d->input, iFalse); /* traditional text editor */ |
260 | setLineLimits_InputWidget(d->input, 7, 20); | 260 | setLineLimits_InputWidget(d->input, 7, 20); |
261 | setHint_InputWidget(d->input, "${hint.upload.text}"); | 261 | setHint_InputWidget(d->input, "${hint.upload.text}"); |