Full version, Basic version

Specification link: 10.14 Alternate glyphs

text-align-08-b ← index → text-deco-01-b

# text-altglyph-01-b
SVG Image | PNG Image
text-altglyph-01-b Test 'altGlyph' facilities and many-to-many chars to glyphs. Test 'altGlyph' facilities and many-to-many chars to glyphs H A P P Y S AD SASSY $Revision: 1.5 $ |

Test 'altGlyph' facilities and many-to-many chars to glyphs.

Three text strings show: the word "HAPPY" in red, 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.

This test requires some support for SVG fonts.

text-align-08-b ← index → text-deco-01-b