Skip to main content

Text Baseline and Rendering Reference

A one-page reference for people drawing with text in svg. Each sample puts the same word at the same point, 26 units down, on a red guide line, so where the text lands shows what the value does.

  • dominantBaseline. The word Hxg set with each value, from auto and alphabetic to textBeforeEdge and textAfterEdge.
  • alignmentBaseline. The same word and guide line for each of its values.
  • textRenderingMode. The letters Aa filled, stroked, both, and invisible.
  • Clipping modes. fillclip, strokeclip, fillstrokeclip and clip, each followed by two translucent stripes that show only inside the letters.
  • Header and footer. A small svg logo mark, the sheet's name and the page count.

Features used: PDF/A-2b conformance, columns, SVG, headers and footers