Closed noraj closed 11 months ago
Color emoji cannot be used with Asciidoctor PDF as it is not supported by ttfunk. You must use a monochrome emoji instead. And Asciidoctor PDF provides one in the gem. See https://github.com/asciidoctor/asciidoctor-pdf/blob/main/data/fonts/notoemoji-subset.ttf
In the future, please direct questions about usage and configuration to the project chat at https://chat.asciidoctor.org. Thanks.
I was going to say:
As Noto Color Emoji or JoyPixels but SYmbola is, I guess that ttfunk doesn't support CBDT/CBLC format fonts but supports outline only format fonts.
Emoji fonts come in different formats: CBDT/CBLC (Google), SBIX (Apple), COLR/CPAL (Microsoft), SVG (Mozilla/Adobe).
I have not tried a SVG font so far.
An SVG font won't work either. ttfunk only supports TTF and marginally OTF. However, it may be possible to convert a font of another type to TTF using FontForge, as long as it doesn't rely on color features. (I'm not sure why ttfunk crashes when the font contains color, but I don't understand ttfunk well enough to explain what's going on there).
With the custom font I have sourced, some emojis are missing:
If I add an Emoji font like Noto Color Emoji or JoyPixels like this…
… I get an error:
Patching the fonts is required for regular fonts but not for fallback fonts as I can read:
https://docs.asciidoctor.org/pdf-converter/latest/theme/prepare-custom-font/