summaryrefslogtreecommitdiff
path: root/src/ui/text.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-11-15 07:43:27 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-11-15 07:43:27 +0200
commite9048baadbe738c7b63e2f49f3918053341d720e (patch)
tree307b1dbadbe276c02b12b753d92d49e77b9074a6 /src/ui/text.c
parentaf08260b09786a89007e5fad7116520fab96acbf (diff)
Added a preference for monospace body text
Monospace body font can be set separately for Gemini and Gopher.
Diffstat (limited to 'src/ui/text.c')
-rw-r--r--src/ui/text.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index 1ff3fb12..15959150 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -213,15 +213,17 @@ static void initFonts_Text_(iText *d) {
213 { &fontFiraMonoRegular_Embedded, fontSize_UI * 0.866f, 1.0f, defaultSymbols_FontId }, 213 { &fontFiraMonoRegular_Embedded, fontSize_UI * 0.866f, 1.0f, defaultSymbols_FontId },
214 { &fontSourceSansProRegular_Embedded, textSize, scaling, symbols_FontId }, 214 { &fontSourceSansProRegular_Embedded, textSize, scaling, symbols_FontId },
215 /* content fonts */ 215 /* content fonts */
216 { regularFont, textSize, scaling, symbols_FontId }, 216 { regularFont, textSize, scaling, symbols_FontId },
217 { &fontFiraMonoRegular_Embedded, monoSize, 1.0f, monospaceSymbols_FontId }, 217 { &fontFiraMonoRegular_Embedded, monoSize, 1.0f, monospaceSymbols_FontId },
218 { &fontFiraMonoRegular_Embedded, monoSize * 0.750f, 1.0f, monospaceSmallSymbols_FontId }, 218 { &fontFiraMonoRegular_Embedded, monoSize * 0.750f, 1.0f, monospaceSmallSymbols_FontId },
219 { regularFont, textSize * 1.200f, scaling, mediumSymbols_FontId }, 219 { regularFont, textSize * 1.200f, scaling, mediumSymbols_FontId },
220 { h3Font, textSize * 1.333f, scaling, bigSymbols_FontId }, 220 { h3Font, textSize * 1.333f, scaling, bigSymbols_FontId },
221 { italicFont, textSize, scaling, symbols_FontId }, 221 { italicFont, textSize, scaling, symbols_FontId },
222 { h12Font, textSize * 1.666f, h123Scaling, largeSymbols_FontId }, 222 { h12Font, textSize * 1.666f, h123Scaling, largeSymbols_FontId },
223 { h12Font, textSize * 2.000f, h123Scaling, hugeSymbols_FontId }, 223 { h12Font, textSize * 2.000f, h123Scaling, hugeSymbols_FontId },
224 { lightFont, textSize * 1.666f, scaling, largeSymbols_FontId }, 224 { lightFont, textSize * 1.666f, scaling, largeSymbols_FontId },
225 /* monospace content fonts */
226 { &fontFiraMonoRegular_Embedded, textSize, 0.8f, symbols_FontId },
225 /* symbol fonts */ 227 /* symbol fonts */
226 { &fontSymbola_Embedded, fontSize_UI, 1.0f, defaultSymbols_FontId }, 228 { &fontSymbola_Embedded, fontSize_UI, 1.0f, defaultSymbols_FontId },
227 { &fontSymbola_Embedded, fontSize_UI * 1.125f, 1.0f, defaultMediumSymbols_FontId }, 229 { &fontSymbola_Embedded, fontSize_UI * 1.125f, 1.0f, defaultMediumSymbols_FontId },