Short answer
A glyph is the drawn shape a font uses for a character, not the character code itself. Unicode's glossary calls a glyph an abstract form that represents one or more glyph images, chosen by a rendering engine. A font file maps character codes to those shapes. One character can have several glyphs, and one glyph can stand in for more than one character.
Last verified against the sources listed below.
Key takeaways
- Unicode defines a glyph as an abstract form that represents one or more glyph images.
- A glyph image is the concrete picture after the shape is drawn on a surface.
- Unicode says characters and glyphs do not match one to one.
- MDN says a font maps character codes to glyphs, including letters, numbers, and emoji.
- A grapheme is what a reader treats as one character. A grapheme cluster is Unicode's programmed approximation.
- CSS Fonts says a simple font's character map points each character at a default glyph.
What is a glyph, in Unicode’s glossary, is an abstract form that represents one or more glyph images, or a synonym for the glyph image itself. When software displays Unicode text, a rendering engine picks one or more glyphs to depict a character.
The glossary entry says those glyphs are selected during composition and layout. A glyph image, in the next entry, is the concrete picture after that form has been drawn onto a surface. A glyph code is only a number inside one font. Another font can use a different number for a matching shape.
That split is why a character counter and a font are doing different work. The counter tallies characters. The font decides which drawing to show.
How does a glyph differ from a character?
Unicode’s character encoding model, UTR 17, says the elements of a character repertoire are abstract characters. Their identity is not limited to appearance. Glyphs are the particular images that represent a character or part of a character.
The report says glyphs for the same character may have very different shapes. It uses the letter a as the picture. It also says the correspondence cannot be predicted from the text alone. An f followed by an i may be shown as one fi ligature glyph, with the shapes merged and the dot of the i absent.
Unicode’s principles page makes the same cut. The character identified by a code point is an abstract entity, such as “LATIN CAPITAL LETTER A.” The mark on screen or paper, the glyph, is a visual representation. The standard does not define glyph images, and it does not set size, shape, or style.
What is a grapheme, then?
A grapheme is not the ink. Unicode’s glossary defines it as a minimally distinctive unit of writing in a given writing system, and also as what a user thinks of as a character. The example is b and d in English: big and dig are different words, so those letters are distinct graphemes. Two drawings of a lowercase a are not distinct graphemes if no word depends on the difference.
UAX 29 says a single code point is often, but not always, what a user thinks of as a character. “G” plus a grave accent is one user-perceived character and two code points. Implementations use grapheme clusters as a best-effort, programmable approximation.
The annex says a grapheme cluster has no size limit. A storage cap should also use bytes.
The annex also says cursor placement is only approximated by clusters. The editing framework has to know where glyph edges fall, including when a digraph is one glyph in the font. The cluster is the user’s unit. The glyph is the font’s drawing of it.
How a font maps codes to glyphs
MDN’s CSS fonts guide says the CSS fonts module lets you set family, size, and weight, and the glyph variants to use when several exist for one character. It defines a font as a resource file of visual representations, mapping character codes to glyphs for letters, numbers, punctuation, and emoji.
A font family, on that page, is a group of fonts that share a design and vary the glyphs by stroke weight, slant, or relative width.
CSS Fonts Module Level 4 says a simple Latin font uses a character map from each character to a glyph, then places those glyphs one after another. OpenType and AAT can choose and position a glyph using neighboring characters, the language, the script, and enabled features.
Microsoft’s OpenType font file description says part of the file is for selecting glyphs and placing them on a line. Other tables describe the glyph outlines, as TrueType or CFF, or supply bitmap, SVG, or color drawings as alternate glyph descriptions.
| Unit | What it is | What it is not |
|---|---|---|
| Character | Abstract unit with a code point, per Unicode | The pixels on screen |
| Glyph | Form or image selected by the font and the renderer | A Unicode code point |
| Glyph code | A number local to one font | Stable across every font |
| Grapheme | What a reader counts as one written character | A guarantee about the ink |
| Grapheme cluster | UAX 29’s programmed approximation of that unit | A byte-size limit |
Spacing between those drawings is a separate setting. Kerning adjusts the gap between a pair of glyphs. CSS Fonts lists font-kerning beside glyph selection. The gap is not a new character.
Why the distinction matters on a web page
HTML stores characters. The HTML guide is about that markup. The browser then asks a font for glyphs.
If the font’s character map has no glyph for a code point, CSS Fonts says the font does not support that character, and the next family in font-family is tried. A missing drawing is a font problem, not a missing character in the file.
Ligatures change the count people expect. The text can hold two characters while the screen shows one glyph. A character limit that uses code points will not match a selection that uses grapheme clusters, and neither number is the count of shapes in the line. UAX 29 says a text size limit based on grapheme clusters is a user-facing limit, and it should sit next to a byte limit when storage matters.
Emoji follow the same model. MDN includes emoji in the list of things a font’s glyphs can represent. A sequence that looks like one picture can still be more than one code point. The glyph you see is the font’s choice for that sequence.
Common mistakes
Do not treat the character code as the picture. Unicode’s principles page says the standard specifies interpretation, not the rendered shape. Two sites can use the same code point and look different because they loaded different font files.
Do not assume one keypress is one glyph. UTR 17’s fi ligature is the compact example: two characters, one glyph. The reverse also happens.
CSS Fonts says one character can have several glyph variants. Enabling a font feature can swap the drawing without changing the stored character.
Do not use a glyph code from one font as if it were a Unicode scalar value. The glossary says glyph codes may be local to a font. Copying that number into another file does not mean the same shape, or any shape.
Frequently asked questions
Is a glyph the same thing as a character?
No. Unicode's glossary says a character is the smallest component of written language that has semantic value, and it points to glyph for the shape. The encoding model report says characters are abstract and glyphs are the particular images that represent a character or part of one. The same report says the match is generally not one to one. Counting characters does not count the drawings a font will use.
What is a grapheme if a glyph is the drawing?
Unicode's glossary gives grapheme two senses. One is a minimally distinctive unit of writing, such as b versus d in English. The other is what a user thinks of as a character. A grapheme cluster, defined in Unicode Standard Annex 29, is the programmed stand-in for that user-perceived character. An accented letter can be one cluster and two code points. The cluster is not the ink.
Can one glyph show two characters?
Yes. Unicode Technical Report 17 says a sequence of f followed by i may be displayed with a single glyph, the fi ligature. The shapes merge, and the dot on the i is not drawn separately. CSS Fonts Level 4 says modern formats such as OpenType can choose a glyph using adjacent characters, not only the one code point. The text still contains two characters.
What is a glyph image versus a glyph code?
Unicode's glossary separates the terms. A glyph image is the concrete picture after the form has been rasterized or otherwise placed on a display surface. A glyph code is a number that refers to a glyph inside a font, and that number can differ between fonts that draw the same shape. A glyph identifier is a label for the same job. The code is local bookkeeping, not a Unicode code point.
Why do two fonts show the same letter differently?
The Unicode principles page says the standard does not define glyph images. It defines how characters are interpreted, not how they are rendered, and it does not set the size, shape, or style on screen. MDN's CSS fonts guide says a font family is a group of fonts that share a design and vary the glyphs by weight, slant, or width. The character stays the same. The drawing changes with the file.
Sources
- Glossary of Unicode Terms · Unicode Consortium, 2026
- Unicode Technical Report 17, Character Encoding Model · Unicode Consortium, 2026
- UAX 29, Unicode Text Segmentation · Unicode Consortium, 2026
- The Unicode Standard, technical introduction · Unicode Consortium, 2026
- CSS fonts · MDN, 2026
- CSS Fonts Module Level 4 · W3C, 2026
- OpenType font file · Microsoft, 2026