Working with Fonts
Getting Font Line Spacing
The line spacing of a font is the vertical distance between the baselines of two consecutive lines of text. Thus, the line spacing includes the blank space between lines along with the height of the character itself.
Current font formatting is represented by a Font object returned by the DocumentBuilder.font property. The Font class contains a wide variety of font properties possible in Microsoft Word. The below example shows how to set font formatting.
Fill properties now are also available for fonts to set fill formatting of text. It gives an ability to change, for example, the foreground color or transparency of text fill.
The Font class provides emphasis_mark property to get or set EmphasisMark enumeration values to be applied in the formatting. The code example given below demonstrates how to set emphasis_mark property.