What a glyph is
This article takes about 2 minutes to read.
A glyph is the shape used when a character is drawn on a screen or on paper. Unicode decides only as far as the character's number, and the shape in which that character is drawn is determined by the glyphs that a font has.For example, even the same "あ" has a different shape in a Mincho typeface and a Gothic typeface. A single character can have many shapes.
Definition
The Unicode Glossary defines a glyph as an abstract form that represents glyph images actually drawn. Each individual image shown on screen is a glyph image, and the name that groups them together is glyph. The same glossary explains a font as "a collection of glyphs used to make character data visible", and rendering as "the process of selecting and arranging glyphs to represent characters".
How characters differ from glyphs
The "Characters, Not Glyphs" section in Chapter 2 of the Unicode Standard (version 18.0) states the principle that what Unicode encodes is characters, not glyphs. A character is an abstract representation of the smallest meaningful element of written language, and a glyph is a shape that the character can take when it is displayed.
| Aspect | Character | Glyph |
|---|---|---|
| What it is | An abstract unit that carries meaning | The shape when drawn |
| Who decides it | Unicode (number and name) | The font maker |
| In the case of 😀 | U+1F600 grinning face | A picture that differs with each device's emoji font |
| What is sent | Sent (the bytes of the number) | Not sent (the receiving side draws it) |
The same section writes that Unicode deals only with character numbers, and that the shapes of glyphs and how glyphs are chosen are the responsibility of font makers and fall outside the scope of the Unicode Standard. The "Plain Text" section of the same chapter also says that plain text represents only the content of characters, not their appearance.
1 character and 1 glyph do not always correspond
The "Characters, Not Glyphs" section writes that 1 glyph may correspond to 1 character or to several characters, and that several glyphs may also come from 1 character.
- An example of drawing several characters with 1 glyph: the 2 characters f and i are sometimes drawn as 1 joined shape (a ligature). In emoji, 👩🦰 (woman: red hair) is an example where the 3 code points U+1F469 U+200D U+1F9B0 are drawn as 1 picture
- An example of drawing 1 character with several glyphs: in COLR, a mechanism of the font format OpenType, the picture of 1 emoji is built by layering several colored glyphs
- An example of the same character having several shapes: the standard writes that even the single character a has various glyphs that represent it
A combined emoji is drawn with 1 glyph if the font has a picture for that sequence, and if not, the parts appear side by side as separate emoji. How sequences are joined is explained in the glossary entry ZWJ.
Glyph numbers inside a font
An OpenType font has a table called cmap that looks up glyph numbers from character numbers, and this table is one of the tables required in an OpenType font. The COLR specification explains this with the example of a case where the cmap of an emoji font maps U+1F600 to glyph number 718. This 718 is a number only within that font, and in another font the same character maps to a glyph with a different number. What is sent or saved is the Unicode number, and the glyph number is used only internally on the displaying side.
Why emoji look different from device to device
Unicode gives 😀 the number U+1F600 and the name grinning face, but it does not decide the shape of the picture. The emoji fonts used by the device or app that displays it are not necessarily the same, and each font maker draws their own glyphs, so even with the same number, the expression and colors look different depending on the device. The picture differs between the sending side and the receiving side not because the data changed, but because it is redrawn with the glyphs of the receiving side's font.
If a font has no glyph at all for the character, a substitute box is drawn. This is tofu.
Common misconceptions
- ❌ "Unicode decides the pictures of emoji" → ✅ What Unicode decides is the number and the name, and the pictures are glyphs drawn by font makers
- ❌ "1 character is always drawn with 1 glyph" → ✅ As with ligatures and combined emoji, several characters can become 1 glyph, and the reverse also happens
Related terms
Was this article helpful?