diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-28 06:21:46 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-28 06:21:56 +0300 |
commit | a45a7dd965d0345edffd37c04c4f264a6a368f91 (patch) | |
tree | f1a02f8add49b3f9129642fbd71af874a4fd4c5c /src/ui/text.c | |
parent | 4506324621622c778656bc7cf7c5d6eca5386f58 (diff) |
DocumentWidget: Improved drawing of link key shortcuts
Diffstat (limited to 'src/ui/text.c')
-rw-r--r-- | src/ui/text.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/text.c b/src/ui/text.c index 980f15bd..ae952df9 100644 --- a/src/ui/text.c +++ b/src/ui/text.c | |||
@@ -324,7 +324,7 @@ static void initFonts_Text_(iText *d) { | |||
324 | { &fontIosevkaTermExtended_Embedded, monoSize, 1.0f, contentMono_FontSize }, | 324 | { &fontIosevkaTermExtended_Embedded, monoSize, 1.0f, contentMono_FontSize }, |
325 | /* extra content fonts */ | 325 | /* extra content fonts */ |
326 | { &fontSourceSans3Regular_Embedded, textSize, scaling, contentRegular_FontSize }, | 326 | { &fontSourceSans3Regular_Embedded, textSize, scaling, contentRegular_FontSize }, |
327 | // { &fontIosevkaTermExtended_Embedded, textSize, 0.866f, contentRegular_FontSize }, | 327 | { &fontSourceSans3Regular_Embedded, textSize * 0.80f, scaling, contentRegular_FontSize }, |
328 | /* symbols and scripts */ | 328 | /* symbols and scripts */ |
329 | #define DEFINE_FONT_SET(data, glyphScale) \ | 329 | #define DEFINE_FONT_SET(data, glyphScale) \ |
330 | { (data), uiSize, glyphScale, uiNormal_FontSize }, \ | 330 | { (data), uiSize, glyphScale, uiNormal_FontSize }, \ |
@@ -626,7 +626,7 @@ iLocalDef iFont *characterFont_Font_(iFont *d, iChar ch, uint32_t *glyphIndex) { | |||
626 | /* White up arrow is used for the Shift key on macOS. Symbola's glyph is not a great | 626 | /* White up arrow is used for the Shift key on macOS. Symbola's glyph is not a great |
627 | match to the other text, so use the UI font instead. */ | 627 | match to the other text, so use the UI font instead. */ |
628 | if ((ch == 0x2318 || ch == 0x21e7) && d == font_Text_(regular_FontId)) { | 628 | if ((ch == 0x2318 || ch == 0x21e7) && d == font_Text_(regular_FontId)) { |
629 | *glyphIndex = glyphIndex_Font_(d = font_Text_(defaultContentSized_FontId), ch); | 629 | *glyphIndex = glyphIndex_Font_(d = font_Text_(defaultContentRegular_FontId), ch); |
630 | return d; | 630 | return d; |
631 | } | 631 | } |
632 | #endif | 632 | #endif |