Emoji Support

Overview

With version 1.61, Prysm adds support for certain types of emoji fonts. Emojis and colored text glyphs can enhance the visual fidelity of any Web component that includes displaying text. Prysm can now load fonts that contain emoji characters and use them in any text context.

Details

Supported emoji font types

There are multiple ways that fonts can encode emoji glyphs. One of these ways is with a COLRV0 table. Prysm can only use this kind of emoji fonts. Officially, we support the following emoji fonts:

Prysm should still be able to load any font file that contains emojis in the COLRV0 format.

Usage

The emoji fonts can be loaded as any other font.

After this, emojis can be added to the HTML in various ways:

<body>
	<!-- With manual unicode code -->
	&#x0001F39F;
	<!-- With pasted unicode character -->
	😀
</body>

Emoji fonts can also be used in conjunction with other fonts.

<style>
	body {
		font-family: Droid Sans, EmojiTwo;
	}
</style>

Prysm will first try displaying the text characters with Droid Sans and only the emoji glyphs will be rendered through the EmojiTwo font.