DynaPDF Manual - Page 423

Previous Page 422   Index   Next Page 424

Function Reference
Page 423 of 839
The parameter AText must contain the same text (incl. format tags if any) as which should be
printed later with WriteFText().
Remarks:
This function is implemented in an Ansi and Unicode compatible version.
Return values:
If the function succeeds the return value is the height of the formatted text block. If the function fails
the return value is a negative error code.
GetGlyphIndex
Syntax:
SI32 pdfGetGlyphIndex(
const PPDF* IPDF, // Instance pointer
UI32 Index)
// Code page, Unicode, or CJK index
The function returns the glyph index of the given code page or Unicode index. How Index must be
defined depends on the code page with which the font was loaded. For example, if the font was
loaded with a 8 bit code page, then indexes below 256 are treated as index into the code page table.
Higher indexes are treated as Unicode value in this case. Note that all Unicode encoded glyphs of
the font are accessible in this case, also if the font was loaded with a 8 bit code page!
At time of publication the function does not support CJK code pages which require a conversion to
Unicode, e.g. cpCJK_Big5_Uni, cpCJK_EUC_JP_Uni, and so on.
Return values:
If the function succeeds the return value is greater or equal zero. If the function fails the return value
is a negative error code.
GetGlyphOutline
Syntax:
SI32 pdfGetGlyphOutline(
const PPDF* IPDF,
// Instance pointer
UI32 Index,
// Glyph index
struct TPDFGlyphOutline* Outline) // see below
struct TFRect
{
SI16 MinX;
SI16 MinY;
SI16 MaxX;
SI16 MaxY;
};
struct TI32Point
{
SI32 x;
SI32 y;
};
 

Previous topic: Font weights:, GetFTextHeight, GetFTextHeightEx

Next topic: C, C++, Delphi, C#, VB 6, VB .Net, PHP, Outline format