summaryrefslogtreecommitdiff
path: root/src/ui/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/text.c')
-rw-r--r--src/ui/text.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ui/text.c b/src/ui/text.c
index 6f6a52ed..d3b8df37 100644
--- a/src/ui/text.c
+++ b/src/ui/text.c
@@ -232,6 +232,18 @@ static void initFonts_Text_(iText *d) {
232 italicFont = &fontLiterataLightItalicopsz10_Embedded; 232 italicFont = &fontLiterataLightItalicopsz10_Embedded;
233 lightFont = &fontLiterataExtraLightopsz18_Embedded; 233 lightFont = &fontLiterataExtraLightopsz18_Embedded;
234 } 234 }
235 else if (d->contentFont == sourceSansPro_TextFont) {
236 regularFont = &fontSourceSansProRegular_Embedded;
237 italicFont = &fontFiraSansItalic_Embedded;
238 lightFont = &fontFiraSansLight_Embedded;
239 lightScaling = 0.85f;
240 }
241 else if (d->contentFont == iosevka_TextFont) {
242 regularFont = &fontIosevkaTermExtended_Embedded;
243 italicFont = &fontIosevkaTermExtended_Embedded;
244 lightFont = &fontIosevkaTermExtended_Embedded;
245 scaling = lightScaling = 0.866f;
246 }
235 if (d->headingFont == firaSans_TextFont) { 247 if (d->headingFont == firaSans_TextFont) {
236 h12Font = &fontFiraSansBold_Embedded; 248 h12Font = &fontFiraSansBold_Embedded;
237 h3Font = &fontFiraSansRegular_Embedded; 249 h3Font = &fontFiraSansRegular_Embedded;
@@ -246,6 +258,14 @@ static void initFonts_Text_(iText *d) {
246 h12Font = &fontLiterataBoldopsz36_Embedded; 258 h12Font = &fontLiterataBoldopsz36_Embedded;
247 h3Font = &fontLiterataRegularopsz14_Embedded; 259 h3Font = &fontLiterataRegularopsz14_Embedded;
248 } 260 }
261 else if (d->headingFont == sourceSansPro_TextFont) {
262 h12Font = &fontSourceSansProBold_Embedded;
263 h3Font = &fontSourceSansProRegular_Embedded;
264 }
265 else if (d->headingFont == iosevka_TextFont) {
266 h12Font = &fontIosevkaTermExtended_Embedded;
267 h3Font = &fontIosevkaTermExtended_Embedded;
268 }
249#if defined (iPlatformAppleMobile) 269#if defined (iPlatformAppleMobile)
250 const float uiSize = fontSize_UI * 1.1f; 270 const float uiSize = fontSize_UI * 1.1f;
251#else 271#else