Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Use different fonts in PDF documents with Docotic.Pdf.Layout add-on

This sample shows how to manage fonts in PDF documents using Docotic.Pdf.Layout add-on.

Use Document.TextStyleWithFont methods to create a text style based on a font from the system font collection, a file or a stream. You can also set a desired font embed style.

You can provide a font loader using the PdfDocumentBuilder.FontLoader method to override the system font collection.

The library provides 2 ways to handle missing font glyphs. You can set a common handler using the PdfDocumentBuilder.MissingGlyphHandler. Or you can apply a fallback text style using the TextStyle.Fallback method.

This sample code uses free Docotic.Pdf.Layout add-on for Docotic.Pdf library.

See also