summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-07-30 19:20:59 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-07-30 19:20:59 +0300
commit01e80caec8220c1d57d4e2ef4eb9c99538842429 (patch)
tree093d76386785bc6c29d1c66eb1ea752e95b64901 /src
parent75512175ba9da1c18ae36cfbb2b644a282f42c5c (diff)
More readable italic font
Thin fonts are nice but not very legible.
Diffstat (limited to 'src')
-rw-r--r--src/ui/documentwidget.c5
-rw-r--r--src/ui/text.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 7687ec16..b3565af9 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -933,8 +933,9 @@ static void drawRun_DrawContext_(void *context, const iGmRun *run) {
933 iDate date; 933 iDate date;
934 init_Date(&date, linkTime_GmDocument(doc, run->linkId)); 934 init_Date(&date, linkTime_GmDocument(doc, run->linkId));
935 appendFormat_String(&str, 935 appendFormat_String(&str,
936 " \u2014 %s", 936 " \u2014 %s%s",
937 cstr_String(collect_String(format_Date(&date, "%b %d")))); 937 escape_Color(fg),
938 cstr_String(collect_String(format_Date(&date, "%b %d"))));
938 } 939 }
939 if (!isEmpty_String(&str)) { 940 if (!isEmpty_String(&str)) {
940 const iInt2 textSize = measure_Text(default_FontId, cstr_String(&str)); 941 const iInt2 textSize = measure_Text(default_FontId, cstr_String(&str));
diff --git a/src/ui/text.c b/src/ui/text.c
index 83b3964d..40008963 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -150,7 +150,7 @@ void init_Text(SDL_Renderer *render) {
150 { &fontFiraMonoRegular_Embedded, fontSize_UI * 0.866f, smallSymbols_FontId }, 150 { &fontFiraMonoRegular_Embedded, fontSize_UI * 0.866f, smallSymbols_FontId },
151 { &fontFiraMonoRegular_Embedded, fontSize_UI * 0.666f, smallSymbols_FontId }, 151 { &fontFiraMonoRegular_Embedded, fontSize_UI * 0.666f, smallSymbols_FontId },
152 { &fontFiraSansRegular_Embedded, fontSize_UI * 1.333f, mediumSymbols_FontId }, 152 { &fontFiraSansRegular_Embedded, fontSize_UI * 1.333f, mediumSymbols_FontId },
153 { &fontFiraSansLightItalic_Embedded, fontSize_UI, symbols_FontId }, 153 { &fontFiraSansItalic_Embedded, fontSize_UI, symbols_FontId },
154 { &fontFiraSansBold_Embedded, fontSize_UI, symbols_FontId }, 154 { &fontFiraSansBold_Embedded, fontSize_UI, symbols_FontId },
155 { &fontFiraSansBold_Embedded, fontSize_UI * 1.333f, mediumSymbols_FontId }, 155 { &fontFiraSansBold_Embedded, fontSize_UI * 1.333f, mediumSymbols_FontId },
156 { &fontFiraSansBold_Embedded, fontSize_UI * 1.666f, largeSymbols_FontId }, 156 { &fontFiraSansBold_Embedded, fontSize_UI * 1.666f, largeSymbols_FontId },