Join Slack
Powered by
Any recommended workarounds for using emojis (I ne...
# compose-web
r
Rok Oblak
10/04/2024, 5:58 AM
Any recommended workarounds for using emojis (I need country flags, nothing else) without loading a 10MB+ font? (Compose uses system fonts on other platforms but on web I have not seen a clear answer if this is planned or not)
s
Stefan Oltmann
10/04/2024, 2:45 PM
https://github.com/acarlsen/kmp-flagkit
👍 1
o
Oleksandr Karpovich [JB]
10/04/2024, 3:16 PM
perhaps you can avoid loading a font by using Local Font API (experimental and Chrome only for now):
https://developer.mozilla.org/en-US/docs/Web/API/Local_Font_Access_API
👍 1
r
Rok Oblak
10/04/2024, 4:04 PM
Thanks both!
@Stefan Oltmann
I will use this for now, exactly what I needed 🙂
Rok Oblak
10/04/2024, 4:05 PM
@Anders Carlsen
many props for the lib 🚀
a
andylamax
10/04/2024, 11:53 PM
There is also
https://github.com/aSoft-Ltd/nation/tree/main/flags/compose
👍 1
s
Stefan Oltmann
10/05/2024, 6:08 AM
Thanks for the addition. The first version is performance wise my recommendation, because the second requires XML parsing.
9
Views
Open in Slack
Previous
Next