 | MapFontCallback Delegate |
Use the system font mapper to get a font handle from requested parameters
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic delegate IntPtr MapFontCallback(
FPDF_SYSFONTINFO pThis,
int weight,
bool bItalic,
CharacterSetTypes charset,
PitchFamilyFlags pitch_family,
string face,
ref bool bExact
)
Public Delegate Function MapFontCallback (
pThis As FPDF_SYSFONTINFO,
weight As Integer,
bItalic As Boolean,
charset As CharacterSetTypes,
pitch_family As PitchFamilyFlags,
face As String,
ByRef bExact As Boolean
) As IntPtr
public delegate IntPtr MapFontCallback(
FPDF_SYSFONTINFO^ pThis,
int weight,
bool bItalic,
CharacterSetTypes charset,
PitchFamilyFlags pitch_family,
String^ face,
bool% bExact
)
type MapFontCallback =
delegate of
pThis : FPDF_SYSFONTINFO *
weight : int *
bItalic : bool *
charset : CharacterSetTypes *
pitch_family : PitchFamilyFlags *
face : string *
bExact : bool byref -> IntPtr
/** @delegate */
public delegate IntPtr MapFontCallback(
FPDF_SYSFONTINFO pThis,
int weight,
boolean bItalic,
CharacterSetTypes charset,
PitchFamilyFlags pitch_family,
String face,
/** @ref */boolean bExact
)
function(pThis, weight, bItalic, charset, pitch_family, face, 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
IntPtrAn 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