Click or drag to resize

MapFontCallback Delegate

Use the system font mapper to get a font handle from requested parameters

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public delegate IntPtr MapFontCallback(
	FPDF_SYSFONTINFO pThis,
	int weight,
	bool bItalic,
	CharacterSetTypes charset,
	PitchFamilyFlags pitch_family,
	string face,
	ref bool bExact
)

Parameters

pThis  FPDF_SYSFONTINFO
Pointer to the interface structure itself
weight  Int32
Weight of the requested font. 400 is normal and 700 is bold.
bItalic  Boolean
Italic option of the requested font, TRUE or FALSE.
charset  CharacterSetTypes
Character set identifier for the requested font. See above defined constants.
pitch_family  PitchFamilyFlags
A combination of flags. See above defined constants.
face  String
Typeface name. Currently use system local encoding only.
bExact  Boolean
Pointer to an boolean value receiving the indicator whether mapper found the exact match. If mapper is not sure whether it's exact match, ignore this paramter.

Return Value

IntPtr
An opaque pointer for font handle, or IntPtr.Zero if system mapping is not supported.
Remarks
Required only if GetFont method is not implemented. If the system supports native font mapper (like Windows), implementation can implement this method to get a font handle. Otherwise, Pdfium SDK will do the mapping and then call GetFont method. Only TrueType/OpenType and Type1 fonts are accepted by Pdfium SDK.
See Also