mirror of
https://github.com/flectar/mail.git
synced 2026-11-13 18:44:12 +00:00
28 lines
1.2 KiB
Markdown
28 lines
1.2 KiB
Markdown
# Color emoji regression fixture
|
|
|
|
`NotoColorEmoji-digits.ttf` is a test-only subset of Google's Noto Color Emoji,
|
|
licensed under SIL OFL 1.1 (see `OFL-NotoEmoji.txt`). It is not bundled into the
|
|
application. The font's embedded copyright/name records are retained.
|
|
|
|
Source: https://github.com/googlefonts/noto-emoji/blob/f3ae03f5e9b3b8516fa151f7168159ca1a3e7515/fonts/NotoColorEmoji.ttf
|
|
|
|
Original SHA-256: `72a635cb3d2f3524c51620cdde406b217204e8a6a06c6a096ff8ed4b5fd6e27b`
|
|
|
|
Reproduce with FontTools (`pyftsubset`):
|
|
|
|
```sh
|
|
pyftsubset NotoColorEmoji.ttf \
|
|
--unicodes=U+0023,U+002A,U+0030-0039,U+00A9,U+00AE,U+20E3,U+FE0E,U+FE0F,U+1F600 \
|
|
--output-file=NotoColorEmoji-digits.ttf
|
|
```
|
|
|
|
This retains the bitmap digits, hash, asterisk, copyright/registered symbols,
|
|
keycap sequences, and grinning face. It reproduces issues #16/#23 without
|
|
depending on fonts installed on the machine: when an email names an unavailable
|
|
platform font, Parley can select
|
|
this emoji font for plain digits before reaching its Latin/Common fallback.
|
|
Vello CPU's current build lacks PNG glyph support, so these bitmap digits
|
|
vanish; Vello GPU paints them with emoji metrics and excessive spacing.
|
|
The tests verify that text uses the regular fallback while real emoji still
|
|
select the emoji family.
|