Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.GetGlyphIndex
Returns the glyph index of the given code page or Unicode index.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 14.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.GetGlyphIndex"; PDF; Index ) More
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Index | The Code page, Unicode, or CJK index. | 123 |
Result
Returns number or error.
Description
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.
See also GetGlyphIndex function in DynaPDF manual.
Examples
Queries glyph indexes for two letters:
MBS( "DynaPDF.GetGlyphIndex"; $PDF; Code("A") ) & ¶ & MBS( "DynaPDF.GetGlyphIndex"; $PDF; Code("z") )
See also
This function checks for a license.
Created 26th September 2024, last changed 26th September 2024