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
fonts-elem-01-t Basic test of embedded fonts using glyph outlines <font> horiz-adv-x horiz-adv-x=1000 12 horiz-adv-x=2000 12 horiz-adv-x=1000 but ignored 12 $Revision: 1.10 $ |

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