Open rayegun opened 1 week ago
A good question.
https://github.com/JuliaGraphics/Cairo.jl/issues/311
Perhaps if there was a text function that scanned input text for emoji characters and switched fontsā¦. but youād also have to extract the widths of the emoji glyphs, which might involve Freetype. It could get tricky.
Typically in Cairo, text is one string/one fontface/one size, whereas in a terminal or browser the OS will rapidly switch between different fonts depending on which of the current active fonts can supply a valid glyph: on MacOS, emoji codes force a switch to AppleColorEmoji. āfont fallbackā is cool.
I donāt think thereās font fallback in Cairo - it would need to be written as a new method. The Makie folks donāt support emoji either, which suggests that itās not trivial to do.
(I used to strip them from incoming text š)
Hey, is there any chance this could be fixed? I use Luxor.jl for generating our YouTube thumbnails (with Cormullion's backgrounds), and lack of emoji support makes it difficult for some talks who naughtily included emojis in their titles!