Emoji Support

Overview

With version 1.61, Gameface 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. Gameface can now load fonts that contain emoji characters and use them in any text context.

Details

Supported emoji font types

COLRV0

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

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

COLRV1

Another more modern way of how emoji glyphs are stored in a font file is the COLRV1 table. This format of color glyphs supports more graphics features like gradients and more complex blending between parts of the glyphs. This further increases the visual fidelity of color glyphs like emojis. The COLRV1 format is considered a replacement for the old way of storing a whole SVG for every glyph in a font file. Compared to SVGs COLORV1 stored glyphs offer more optimal use of storage memory and less complex rendering.

Gameface supports loading and using font files with color glyphs encoded in the COLORV1 font table.

The officially supported COLORV1 fonts are:

Gameface should still be able to load any font file that contains emojis in the COLRV1 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>

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