Tests that contain the draft-watermark are under development and may be incorrectly testing a feature.

fonts-elem-07-b.svg

raster image of fonts-elem-07-b.svg

Operator Script

Run the test. No interaction required.

Pass Criteria

The test passes if the string "AyÖ@ç" is visible and fontsize, character baseline and horizontal advances are the same on both lines, as shown in the reference image.

Test Description

This is a basic test for embedded SVG fonts. The font "Comic Sans" (available from Microsoft) has been converted into an SVG font and embedded in the SVG file. The test contains two text areas, each with the character string "AyÖ@ç" drawn at the same font size.

The upper area contains the glyphs from the embedded font placed in the SVG file as path elements. Each glyph is placed at the location it would be if rendered using normal text rendering (ie. the horizontal advance between characters has been preserved).

The lower area contains the text string rendered using the embedded SVG font, referenced with a CSS @font-face declaration. The SVG font does not have a font-family attribute, so the reference is via the @font-face block which points to a font element by ID. It should appear exactly the same as the upper text area, ie. font size, character baseline and horizontal advance should be the same.