Method SetFont
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
SetFont(PdfFont, double)
Selects the font and size for following text (operator Tf).
public ContentStreamWriter SetFont(PdfFont font, double size)
Parameters
fontPdfFontA StandardFont or TrueTypeFont.
sizedoubleFont size, in points.
Returns
Exceptions
- InvalidOperationException
A standard 14 font is used in a PDF/A document, where every font must be embedded.