PdfFontManagerCreateBaseFont(Byte, Int32, Boolean, IListInt32) Method
Creates a base font from the content of a TrueType or OpenType font file kept in memory,
for fonts loaded from resources, databases or streams
Namespace: Winnovative.Pdf.NextAssembly: Winnovative.Pdf.Next (in Winnovative.Pdf.Next.dll) Version: 21.0.3
public static PdfBaseFont CreateBaseFont(
byte[] fontData,
int collectionIndex = 0,
bool subset = true,
IList<int[]> unicodeRanges = null
)
- fontData Byte
- The content of the font file
- collectionIndex Int32 (Optional)
- The index of the font in a font collection; ignored for a single font file
- subset Boolean (Optional)
- to write only the glyphs used in the document;
to embed the full font (required for editable form fields)
- unicodeRanges IListInt32 (Optional)
-
Optional Unicode ranges to include in the ToUnicode CMap of the embedded font,
specified as pairs of [start, end] codepoint values
(e.g. new[] { new[] { 0x0020, 0x007F } } for Basic Latin).
Only applicable when subset is .
If null, all Unicode ranges supported by the font are included
PdfBaseFontA base font that can be used to create styled fonts