Emojis
Last updated
Last updated
Using Emojis can cause issues as they might be rendered inconsistently across different browser versions. To get consistent results for rendering emojis, you should explicitly use a font that supports a variant of emojis you like. You can read in detail about how to use fonts .
An example of a font that (only) supports emojis is Noto Color Emoji
. If your main font for text is Lexend
and you want to use Noto Color Emoji
for emojis, you can use the following css in src/global.css
:
Now, you can import the css file in src/project.ts
and select the fonts for your <Txt/>
nodes:
src/project.ts:
src/scenes/example.tsx: