Initial
since version 2.9.7
Make some letters appear in a larger font at the beginning of the paragraph.
Child elements
Parent elements
Case, ForAll, Loop, Otherwise, Paragraph, Until, While
Attributes
color(text, optional, since version 2.9.0)- Set the color of the initial. Defaults to black.
fontfamily(text, optional)- Choose the font family. Only “Regular” shape is used at the moment.
padding-bottom(length, optional, since version 4.1.25)- Insert space bottom of the initial.
padding-left(length, optional)- Insert space left of the initial.
padding-right(length, optional)- Insert space right of the initial.
padding-top(length, optional, since version 4.1.25)- Insert space top of the initial.
role(optional, since version 5.9.26)- The role for PDF/UA (accessibility, tagged PDF). With a role, the initial becomes a structure element of its own right before the paragraph, for example
role="H2"for a chapter number that screen readers announce as a heading. Without a role, the initial is part of the paragraph.
Example
<Textblock>
<Paragraph>
<Initial fontfamily="Large" padding-right="2pt">
<Value select="'A'"/>
</Initial>
<Value>certain king had a beautiful garden,
and in the garden stood a tree which bore golden
apples.</Value>
</Paragraph>
</Textblock>
Info
Make sure you set the font face for the surrounding Paragraph to get the spacing right (it defaults to text).