You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unknown font kind error when using the new emoji.beet with "Noto Color Emoji" font #5134
#settext(font: "Noto Color Emoji")
// #emoji.heart.green // Works.#emoji.beet// Gives the error.
error: failed to process font NotoColorEmoji: unknown font kind
I also find it strange that it doesn't use the system font (I think it isn't built-in) since I didn't disable the fallback parameter. Can't it search for any font that supports a specific glyph and use it (to show as little tofu as possible)?
I also find it strange that it doesn't use the system font (I think it isn't built-in) since I didn't disable the fallback parameter. Can't it search for any font that supports a specific glyph and use it (to show as little tofu as possible)?
This means that Typst indeed tries to find any font with the glyph, but without a proper error message, I assumed it didn't.
The error means that subsetting failed which ideally shouldn't ever happen. In this case it's because the font is weird I think. There is already an issue about this: #4572
The error means that subsetting failed which ideally shouldn't ever happen. In this case it's because the font is weird I think. There is already an issue about this: #4572
Depends on the version. New ones are COLRv1 but old ones are CBDT (i.e. color bitmap). In any case, Noto Color Emoji is mentioned in the issue's conversation.
Activity
PgBiel commentedon Oct 5, 2024
This is because
#emoji.beetis a Unicode 16.0 (and thus very new) emoji, which likely isn't supported by your copy of Noto Color Emoji.However, the error needs to be improved. Saving your code to
em.typ, writingtypst c em.typyields:(note the lack of any error span or any additional information)
whereas writing
./typst c em.typ --pdf-standard=a-2bprovides a much more helpful error:Andrew15-5 commentedon Oct 5, 2024
This means that Typst indeed tries to find any font with the glyph, but without a proper error message, I assumed it didn't.
laurmaedje commentedon Oct 5, 2024
The error means that subsetting failed which ideally shouldn't ever happen. In this case it's because the font is weird I think. There is already an issue about this: #4572
Enivex commentedon Oct 5, 2024
Is noto color emoji a bitmap font though?
laurmaedje commentedon Oct 5, 2024
Depends on the version. New ones are COLRv1 but old ones are CBDT (i.e. color bitmap). In any case, Noto Color Emoji is mentioned in the issue's conversation.
Andrew15-5 commentedon Oct 5, 2024
So, which one should I use then?
The COLRv1 files are twice as smaller.
Andrew15-5 commentedon Oct 5, 2024
Do you think that if the subsetting didn't fail, it would've shown the correct error?
laurmaedje commentedon Oct 5, 2024
If subsetting didn't fail there would be no error, just a tofu. The error is PDF/A specific.