From 8307df178e59d7f32555115aa72eb0d78db08e5f Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 4 Sep 2020 06:58:51 +0300 Subject: Text: Heavier bold font --- CMakeLists.txt | 2 +- res/Nunito-Black.ttf | Bin 176816 -> 0 bytes res/Nunito-Bold.ttf | Bin 176492 -> 0 bytes res/Nunito-ExtraBold.ttf | Bin 0 -> 122984 bytes src/ui/text.c | 8 ++++---- 5 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 res/Nunito-Black.ttf delete mode 100644 res/Nunito-Bold.ttf create mode 100644 res/Nunito-ExtraBold.ttf diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d2b4153..3a4795d7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,7 +29,7 @@ set (EMBED_RESOURCES res/FiraSans-Light.ttf res/FiraSans-Italic.ttf res/Nunito-Regular.ttf - res/Nunito-Bold.ttf + res/Nunito-ExtraBold.ttf res/Nunito-ExtraLight.ttf res/Nunito-LightItalic.ttf res/FiraMono-Regular.ttf diff --git a/res/Nunito-Black.ttf b/res/Nunito-Black.ttf deleted file mode 100644 index 955e3b2a..00000000 Binary files a/res/Nunito-Black.ttf and /dev/null differ diff --git a/res/Nunito-Bold.ttf b/res/Nunito-Bold.ttf deleted file mode 100644 index c8fabf7d..00000000 Binary files a/res/Nunito-Bold.ttf and /dev/null differ diff --git a/res/Nunito-ExtraBold.ttf b/res/Nunito-ExtraBold.ttf new file mode 100644 index 00000000..9fa494c4 Binary files /dev/null and b/res/Nunito-ExtraBold.ttf differ diff --git a/src/ui/text.c b/src/ui/text.c index 7c87f428..e14a679e 100644 --- a/src/ui/text.c +++ b/src/ui/text.c @@ -170,10 +170,10 @@ static void initFonts_Text_(iText *d) { { &fontFiraMonoRegular_Embedded, monoSize * 0.750f, smallSymbols_FontId }, { &fontNunitoRegular_Embedded, textSize * 1.333f, mediumSymbols_FontId }, { &fontNunitoLightItalic_Embedded, textSize, symbols_FontId }, - { &fontNunitoBold_Embedded, textSize, symbols_FontId }, - { &fontNunitoBold_Embedded, textSize * 1.333f, mediumSymbols_FontId }, - { &fontNunitoBold_Embedded, textSize * 1.666f, largeSymbols_FontId }, - { &fontNunitoBold_Embedded, textSize * 2.000f, hugeSymbols_FontId }, + { &fontNunitoExtraBold_Embedded, textSize, symbols_FontId }, + { &fontNunitoExtraBold_Embedded, textSize * 1.333f, mediumSymbols_FontId }, + { &fontNunitoExtraBold_Embedded, textSize * 1.666f, largeSymbols_FontId }, + { &fontNunitoExtraBold_Embedded, textSize * 2.000f, hugeSymbols_FontId }, { &fontNunitoExtraLight_Embedded, textSize * 1.666f, largeSymbols_FontId }, { &fontSymbola_Embedded, fontSize_UI, defaultSymbols_FontId }, { &fontSymbola_Embedded, fontSize_UI * 1.125f, defaultMediumSymbols_FontId }, -- cgit v1.2.3