M_PDFiumSharp_PDFium_FPDFText_LoadFont - ArgusMagnus/PDFiumSharp GitHub Wiki
Returns a font object loaded from a stream of data. The font is loaded into the document. The caller does not need to free the returned object.
Namespace: PDFiumSharp
Assembly: PDFiumSharp (in PDFiumSharp.dll) Version: 1.0.0
C#
public static FPDF_FONT FPDFText_LoadFont(
FPDF_DOCUMENT document,
FontTypes font_type,
bool cid,
byte[] data,
int index = -1,
int count = 0
)
- document
- Type: PDFiumSharp.Types.FPDF_DOCUMENT
Handle to the document. - font_type
- Type: PDFiumSharp.FontTypes
- cid
- Type: System.Boolean
A value specifying if the font is a CID font or not. - data
- Type: System.Byte[]
The data, which will be copied by the font object. - index (Optional)
- Type: System.Int32
The index of the first byte to be copied from data. - count (Optional)
- Type: System.Int32
The number of bytes to copy from data or a negative value to copy all bytes.
Type: FPDF_FONT
Returns NULL on failure.