Full version, Basic version, Tiny version

Specification link: 20.3 The 'font' element

fonts-elem-05-t ← index → fonts-glyph-02-t

# fonts-elem-06-t
SVG Image | PNG Image

This test validates that the font element's horiz-adv-x is used as the default glyph's advance when there is no glyph advance specified. All fonts have a units-per-em of 1000.

The first row shows a layout with a default adavance of 1000. Glyphs have no advance so the 1000 default should be used.

The second row shows a layout with a default adavance of 2000. Glyphs have no advance so the 2000 default should be used.

The last row shows a layout with a default adavance of 0. Glyphs have a specified advance so the 0 default should be ignored.

Reference blue markers show the expected glyph positions.

fonts-elem-05-t ← index → fonts-glyph-02-t

Distributed under both the W3C Test Suite License and the W3C 3-clause BSD License.
To contribute to a W3C Test Suite, see the policies and contribution forms.