summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-13 14:20:55 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-13 14:20:55 +0300
commit9ecd573a049f5f699d6913c14d14cea2fa53ad06 (patch)
tree81a4bcf87ed8c641061178be7094f8ef974c0411 /src/ui
parent4fcf0832ea5f1553115f7da1fe63a218239f5dcb (diff)
Text: Added a semibold Fira Sans font
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/text.c6
-rw-r--r--src/ui/text.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index 9232bce2..e0aafc33 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -233,7 +233,7 @@ static void initFonts_Text_(iText *d) {
233 float h123Scaling = 1.0f; /* glyph scaling (<=1.0), for increasing line spacing */ 233 float h123Scaling = 1.0f; /* glyph scaling (<=1.0), for increasing line spacing */
234 if (d->contentFont == firaSans_TextFont) { 234 if (d->contentFont == firaSans_TextFont) {
235 regularFont = &fontFiraSansRegular_Embedded; 235 regularFont = &fontFiraSansRegular_Embedded;
236 boldFont = &fontFiraSansBold_Embedded; 236 boldFont = &fontFiraSansSemiBold_Embedded;
237 lightFont = &fontFiraSansLight_Embedded; 237 lightFont = &fontFiraSansLight_Embedded;
238 italicFont = &fontFiraSansItalic_Embedded; 238 italicFont = &fontFiraSansItalic_Embedded;
239 scaling = italicScaling = lightScaling = 0.85f; 239 scaling = italicScaling = lightScaling = 0.85f;
@@ -251,7 +251,7 @@ static void initFonts_Text_(iText *d) {
251 italicFont = &fontLiterataLightItalicopsz10_Embedded; 251 italicFont = &fontLiterataLightItalicopsz10_Embedded;
252 lightFont = &fontLiterataExtraLightopsz18_Embedded; 252 lightFont = &fontLiterataExtraLightopsz18_Embedded;
253 } 253 }
254 else if (d->contentFont == sourceSansPro_TextFont) { 254 else if (d->contentFont == sourceSans3_TextFont) {
255 regularFont = &fontSourceSans3Regular_Embedded; 255 regularFont = &fontSourceSans3Regular_Embedded;
256 boldFont = &fontSourceSans3Semibold_Embedded; 256 boldFont = &fontSourceSans3Semibold_Embedded;
257 italicFont = &fontSourceSans3It_Embedded; 257 italicFont = &fontSourceSans3It_Embedded;
@@ -278,7 +278,7 @@ static void initFonts_Text_(iText *d) {
278 h12Font = &fontLiterataBoldopsz36_Embedded; 278 h12Font = &fontLiterataBoldopsz36_Embedded;
279 h3Font = &fontLiterataRegularopsz14_Embedded; 279 h3Font = &fontLiterataRegularopsz14_Embedded;
280 } 280 }
281 else if (d->headingFont == sourceSansPro_TextFont) { 281 else if (d->headingFont == sourceSans3_TextFont) {
282 h12Font = &fontSourceSans3Bold_Embedded; 282 h12Font = &fontSourceSans3Bold_Embedded;
283 h3Font = &fontSourceSans3Regular_Embedded; 283 h3Font = &fontSourceSans3Regular_Embedded;
284 } 284 }
diff --git a/src/ui/text.h b/src/ui/text.h
index 1ae92890..c6091599 100644
--- a/src/ui/text.h
+++ b/src/ui/text.h
@@ -115,7 +115,7 @@ enum iTextFont {
115 firaSans_TextFont, 115 firaSans_TextFont,
116 literata_TextFont, 116 literata_TextFont,
117 tinos_TextFont, 117 tinos_TextFont,
118 sourceSansPro_TextFont, 118 sourceSans3_TextFont,
119 iosevka_TextFont, 119 iosevka_TextFont,
120}; 120};
121 121