FAIL

raster image of text-altglyph-01-b.svg

Operator script (click here to toggle)

Pass Criteria

Three text strings show: the word "HAPPY" in pink, the word "SAD" in green and the word "SASSY" in blue.

The "HAPPY" and "SAD" strings test the 'altGlyph' facility and the ability to map multiple glyphs to a single character. All characters except the "D" are bracketed by 'altGlyph' elements to use two different glyphs to render each character. For "HAPPY", the horizontal stroke through the center of the characters is a smile stroke. For "SAD", the horizontal stroke through the center of the characters is a frown stroke.

The "SASSY" string tests a single glyph representing multiple characters (a ligature). The SVG font in the test case contains an "SS" ligature so that the "SS" in "SASSY" is rendered with a single glyph, where the two parts of the "SS" are connected.