Strip emojis from DejaVuSans so we fallback to the nicer NotoEmojis

This commit is contained in:
Mike Dilger 2023-01-19 11:18:42 +13:00
parent 85ce60ac70
commit e1e74f65f8
3 changed files with 9 additions and 1 deletions

Binary file not shown.

View File

@ -18,3 +18,11 @@ Tools to manage these
pyftsubset noto/NotoColorEmoji.ttf --unicodes="1F000-1FFFF" --layout-features='*' --symbol-cmap --legacy-cmap --no-notdef-glyph --no-notdef-outline --output-file=EmojiOnly.ttf
Noto Emoji (monochrome) comes from:
https://github.com/googlefonts/noto-emoji
CHARS COVERED
NotoEmoji-Regular:
From 1F000 forward, we take these. Therefore strip them from the other fonts.

View File

@ -132,7 +132,7 @@ pub(super) fn font_definitions() -> FontDefinitions {
font_data.insert(
"DejaVuSans".to_owned(),
FontData::from_static(include_bytes!("../../fonts/DejaVuSans.ttf"))
FontData::from_static(include_bytes!("../../fonts/DejaVuSansSansEmoji.ttf")),
);
font_data.insert(