 | GetFontDataCallback Delegate |
Get font data from a font
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic delegate uint GetFontDataCallback(
FPDF_SYSFONTINFO pThis,
IntPtr hFont,
uint table,
byte[] buffer,
uint buf_size
)
Public Delegate Function GetFontDataCallback (
pThis As FPDF_SYSFONTINFO,
hFont As IntPtr,
table As UInteger,
<OutAttribute> buffer As Byte(),
buf_size As UInteger
) As UInteger
public delegate unsigned int GetFontDataCallback(
FPDF_SYSFONTINFO^ pThis,
IntPtr hFont,
unsigned int table,
[InAttribute] [OutAttribute] array<unsigned char>^ buffer,
unsigned int buf_size
)
type GetFontDataCallback =
delegate of
pThis : FPDF_SYSFONTINFO *
hFont : IntPtr *
table : uint32 *
buffer : byte[] byref *
buf_size : uint32 -> uint32
/** @delegate */
public delegate UInt32 GetFontDataCallback(
FPDF_SYSFONTINFO pThis,
IntPtr hFont,
UInt32 table,
/** @attribute InAttribute */ /** @attribute OutAttribute */ byte[] buffer,
UInt32 buf_size
)
function(pThis, hFont, table, buffer, buf_size);
Parameters
- pThis FPDF_SYSFONTINFO
- Pointer to the interface structure itself
- hFont IntPtr
- Font handle returned by MapFont or GetFont method
- table UInt32
- TrueType/OpenType table identifier (refer to TrueType specification). 0 for the whole font file.
- buffer Byte
- The buffer receiving the font data. Can be NULL if not provided
- buf_size UInt32
- Buffer size, can be zero if not provided
Return Value
UInt32Number of bytes needed, if buffer not provided or not large enough, or number of bytes written into buffer otherwise.
RemarksRequired: Yes. Can read either full font file, or a particular TrueType/OpenType table
See Also