diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-29 14:10:31 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-29 14:10:31 +0200 |
commit | a3d56f967643ac77847dcc1669eca5144d736056 (patch) | |
tree | 3eb80d677fe6aae9f2bb19811ff4108787ad7895 /src/ui/text.c | |
parent | 0257f0b53d9a6baed3719159b721abdc31d44715 (diff) |
Added a large UI font
Diffstat (limited to 'src/ui/text.c')
-rw-r--r-- | src/ui/text.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/text.c b/src/ui/text.c index 4b3a5a10..2ceadb75 100644 --- a/src/ui/text.c +++ b/src/ui/text.c | |||
@@ -209,6 +209,7 @@ static void initFonts_Text_(iText *d) { | |||
209 | } fontData[max_FontId] = { | 209 | } fontData[max_FontId] = { |
210 | { &fontSourceSansProRegular_Embedded, fontSize_UI, 1.0f, defaultSymbols_FontId }, | 210 | { &fontSourceSansProRegular_Embedded, fontSize_UI, 1.0f, defaultSymbols_FontId }, |
211 | { &fontSourceSansProRegular_Embedded, fontSize_UI * 1.125f, 1.0f, defaultMediumSymbols_FontId }, | 211 | { &fontSourceSansProRegular_Embedded, fontSize_UI * 1.125f, 1.0f, defaultMediumSymbols_FontId }, |
212 | { &fontSourceSansProRegular_Embedded, fontSize_UI * 1.666f, 1.0f, defaultLargeSymbols_FontId }, | ||
212 | { &fontFiraMonoRegular_Embedded, fontSize_UI * 0.866f, 1.0f, defaultSymbols_FontId }, | 213 | { &fontFiraMonoRegular_Embedded, fontSize_UI * 0.866f, 1.0f, defaultSymbols_FontId }, |
213 | /* content fonts */ | 214 | /* content fonts */ |
214 | { regularFont, textSize, scaling, symbols_FontId }, | 215 | { regularFont, textSize, scaling, symbols_FontId }, |
@@ -223,6 +224,7 @@ static void initFonts_Text_(iText *d) { | |||
223 | /* symbol fonts */ | 224 | /* symbol fonts */ |
224 | { &fontSymbola_Embedded, fontSize_UI, 1.0f, defaultSymbols_FontId }, | 225 | { &fontSymbola_Embedded, fontSize_UI, 1.0f, defaultSymbols_FontId }, |
225 | { &fontSymbola_Embedded, fontSize_UI * 1.125f, 1.0f, defaultMediumSymbols_FontId }, | 226 | { &fontSymbola_Embedded, fontSize_UI * 1.125f, 1.0f, defaultMediumSymbols_FontId }, |
227 | { &fontSymbola_Embedded, fontSize_UI * 1.666f, 1.0f, defaultLargeSymbols_FontId }, | ||
226 | { &fontSymbola_Embedded, textSize, 1.0f, symbols_FontId }, | 228 | { &fontSymbola_Embedded, textSize, 1.0f, symbols_FontId }, |
227 | { &fontSymbola_Embedded, textSize * 1.200f, 1.0f, mediumSymbols_FontId }, | 229 | { &fontSymbola_Embedded, textSize * 1.200f, 1.0f, mediumSymbols_FontId }, |
228 | { &fontSymbola_Embedded, textSize * 1.333f, 1.0f, bigSymbols_FontId }, | 230 | { &fontSymbola_Embedded, textSize * 1.333f, 1.0f, bigSymbols_FontId }, |
@@ -233,6 +235,7 @@ static void initFonts_Text_(iText *d) { | |||
233 | /* emoji fonts */ | 235 | /* emoji fonts */ |
234 | { &fontNotoEmojiRegular_Embedded, fontSize_UI, 1.0f, defaultSymbols_FontId }, | 236 | { &fontNotoEmojiRegular_Embedded, fontSize_UI, 1.0f, defaultSymbols_FontId }, |
235 | { &fontNotoEmojiRegular_Embedded, fontSize_UI * 1.125f, 1.0f, defaultMediumSymbols_FontId }, | 237 | { &fontNotoEmojiRegular_Embedded, fontSize_UI * 1.125f, 1.0f, defaultMediumSymbols_FontId }, |
238 | { &fontNotoEmojiRegular_Embedded, fontSize_UI * 1.666f, 1.0f, defaultLargeSymbols_FontId }, | ||
236 | { &fontNotoEmojiRegular_Embedded, textSize, 1.0f, symbols_FontId }, | 239 | { &fontNotoEmojiRegular_Embedded, textSize, 1.0f, symbols_FontId }, |
237 | { &fontNotoEmojiRegular_Embedded, textSize * 1.200f, 1.0f, mediumSymbols_FontId }, | 240 | { &fontNotoEmojiRegular_Embedded, textSize * 1.200f, 1.0f, mediumSymbols_FontId }, |
238 | { &fontNotoEmojiRegular_Embedded, textSize * 1.333f, 1.0f, bigSymbols_FontId }, | 241 | { &fontNotoEmojiRegular_Embedded, textSize * 1.333f, 1.0f, bigSymbols_FontId }, |
@@ -275,6 +278,7 @@ static void initFonts_Text_(iText *d) { | |||
275 | the other sizes. */ | 278 | the other sizes. */ |
276 | font_Text_(default_FontId)->japaneseFont = defaultJapanese_FontId; | 279 | font_Text_(default_FontId)->japaneseFont = defaultJapanese_FontId; |
277 | font_Text_(defaultMedium_FontId)->japaneseFont = defaultJapanese_FontId; | 280 | font_Text_(defaultMedium_FontId)->japaneseFont = defaultJapanese_FontId; |
281 | font_Text_(defaultLarge_FontId)->japaneseFont = defaultJapanese_FontId; | ||
278 | font_Text_(defaultMonospace_FontId)->japaneseFont = defaultJapanese_FontId; | 282 | font_Text_(defaultMonospace_FontId)->japaneseFont = defaultJapanese_FontId; |
279 | font_Text_(monospaceSmall_FontId)->japaneseFont = monospaceSmallJapanese_FontId; | 283 | font_Text_(monospaceSmall_FontId)->japaneseFont = monospaceSmallJapanese_FontId; |
280 | font_Text_(monospace_FontId)->japaneseFont = monospaceJapanese_FontId; | 284 | font_Text_(monospace_FontId)->japaneseFont = monospaceJapanese_FontId; |
@@ -287,6 +291,7 @@ static void initFonts_Text_(iText *d) { | |||
287 | /* Korean script. */ { | 291 | /* Korean script. */ { |
288 | font_Text_(default_FontId)->koreanFont = defaultKorean_FontId; | 292 | font_Text_(default_FontId)->koreanFont = defaultKorean_FontId; |
289 | font_Text_(defaultMedium_FontId)->koreanFont = defaultKorean_FontId; | 293 | font_Text_(defaultMedium_FontId)->koreanFont = defaultKorean_FontId; |
294 | font_Text_(defaultLarge_FontId)->koreanFont = defaultKorean_FontId; | ||
290 | font_Text_(defaultMonospace_FontId)->koreanFont = defaultKorean_FontId; | 295 | font_Text_(defaultMonospace_FontId)->koreanFont = defaultKorean_FontId; |
291 | font_Text_(monospaceSmall_FontId)->koreanFont = monospaceSmallKorean_FontId; | 296 | font_Text_(monospaceSmall_FontId)->koreanFont = monospaceSmallKorean_FontId; |
292 | font_Text_(monospace_FontId)->koreanFont = monospaceKorean_FontId; | 297 | font_Text_(monospace_FontId)->koreanFont = monospaceKorean_FontId; |