-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
bugSomething isn't workingSomething isn't workingsvgAnything about the file format for people who like to have fun.Anything about the file format for people who like to have fun.
Description
Description
When using some versions of Noto Color Emoji and compiling to SVG, all emojis will turn into U+3299 ㊙️. Or more precisely, all emojis in the font are stacked together, and ㊙️ is the topmost one.
#set text(font: "Noto Color Emoji", fallback: false)
😃typst compile main.typ --format svg --ignore-system-fonts --font-path …
| Font source | Compiled into SVG | OpenType tables |
|---|---|---|
GitHub NotoColorEmoji.ttf, 9.7 MB |
✅ OK, 5.3 KB | CBDT, CBLC |
GitHub NotoColorEmoji_WindowsCompatible.ttf, 9.7 MB |
✅ OK, 5.3 KB | CBDT, CBLC, glyf, loca |
GitHub Noto-COLRv1.ttf, 4.6 MB |
⬜ Empty, 511 B | COLR, CPAL, glyf, loca |
dev-assets NotoColorEmoji-Regular-COLR.subset.ttf, 4.5 MB |
⬜ Empty, 511 B | COLR, CPAL, glyf, loca |
Google Fonts NotoColorEmoji-Regular.ttf, 23 MB |
㊙️ Stack, 18 MB | COLR, CPAL, SVG, glyf, loca |
Fontsource noto-color-emoji_5.2.8_emoji-400-normal.ttf, 23 MB |
㊙️ Stack, 18 MB | COLR, CPAL, SVG, glyf, loca |
(according to otfinfo --tables, which is available in CTAN: Package LCDF-typetools)
This is an SVG-only issue. Exporting to PDF is fine. (Of course, html.frame is also affected.)
Background: Myriad-Dreamin/tinymist#1907.
I guess it's related to #4335 and typst/typst-dev-assets#2?
LLM tells that there are three kinds of emoji fonts: 1. COLR / CPAL, 2. CBDT / EBLC or PNG, 3. SVG. Maybe some formats are not supported? Is the support status documented somewhere?
Update: https://www.colorfonts.wtf/ says that there's a 4th kind: SBIX.
Reproduction URL
No response
Operating system
Windows
Typst version
- I am using the latest version of Typst
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingsvgAnything about the file format for people who like to have fun.Anything about the file format for people who like to have fun.