Hi,
is it possible to render emojis on a cairo surface? Sorry if I’m still using gtk+3, my software is large and porting it to gtk4 would require a lot.
Thanks
Hi,
is it possible to render emojis on a cairo surface? Sorry if I’m still using gtk+3, my software is large and porting it to gtk4 would require a lot.
Thanks
You can ask a GtkWidget
to create a PangoLayout
with the emoji (expressed as a UTF-8 string); then you can use the PangoCairo API to render a PangoLayout
on a Cairo surface.
Grazie mille Emanuele, very kind!
Do you know if I can get the list of the UTF8 strings somehow with gtk+3? I noticed gtk_emoji_chooser_new() is only available in gtk4.
You have to look on any website with the list of Unicode emojis; those typically list various formats/code points.