Browse Source

Add Noto Emoji font for black & white emojis.

tags/v2.6.1
Andrew Belt 5 months ago
parent
commit
511886a6e2
2 changed files with 2 additions and 0 deletions
  1. BIN
      res/fonts/NotoEmoji-Medium.ttf
  2. +2
    -0
      src/window/Window.cpp

BIN
res/fonts/NotoEmoji-Medium.ttf View File


+ 2
- 0
src/window/Window.cpp View File

@@ -366,6 +366,8 @@ Window::Window() {
uiFont = loadFont(asset::system("res/fonts/DejaVuSans.ttf"));
std::shared_ptr<Font> jpFont = loadFont(asset::system("res/fonts/NotoSansJP-Medium.otf"));
nvgAddFallbackFontId(vg, uiFont->handle, jpFont->handle);
std::shared_ptr<Font> emojiFont = loadFont(asset::system("res/fonts/NotoEmoji-Medium.ttf"));
nvgAddFallbackFontId(vg, uiFont->handle, emojiFont->handle);
bndSetFont(uiFont->handle);

if (APP->scene) {


Loading…
Cancel
Save