Adds a new instance of built-in font with specified properties
to the end of the collection of document fonts.
Namespace:
BitMiracle.Docotic.Pdf
Assembly:
BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)
Syntax
C#
public PdfFont AddFont(
PdfBuiltInFont font,
bool underline,
bool strikeout
)
VB
Public Function AddFont (
font As PdfBuiltInFont,
underline As Boolean,
strikeout As Boolean
) As PdfFont
Parameters
- font
- Type: BitMiracle.Docotic.Pdf.PdfBuiltInFont
The PdfBuiltInFont value that
specifies the font to add. - underline
- Type: System.Boolean
if set to true then text drawn
with added font will be underlined. - strikeout
- Type: System.Boolean
if set to true then text drawn
with added font will be stroked out.
Return Value
Type:
PdfFontThe newly added
PdfFont.
Remarks
Built-in fonts support only Latin character set and encoding. You won't be able to use
them with Unicode text.
If requested built-in font does not have bold or italic
version then bold or italic version will be synthesized when
needed.
See Also