Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Checks whether all glyphs of the text are available in the current font.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 13.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
text | Text to be checked. | "Hello World" |
Returns number or error.
See also TestGlyphs function in DynaPDF manual.
Test some text:
# some text with Japanese characters
Set Variable [ $text ; Value: "Tokyo 東京都 " ]
# test with Helvetica
Set Variable [ $r ; Value: MBS("DynaPDF.SetFont"; $pdf; "Helvetica"; 0; 12) ]
Set Variable [ $pos1 ; Value: MBS("DynaPDF.TestGlyphs"; $pdf; $text) ]
# test with Arial Unicode
Set Variable [ $r ; Value: MBS("DynaPDF.SetFont"; $pdf; "Arial Unicode MS"; 0; 12) ]
Set Variable [ $pos2 ; Value: MBS("DynaPDF.TestGlyphs"; $pdf; $text) ]
Show Custom Dialog [ "Position of first character not in the font:" ; $pos1 & ¶ & $pos2 ]
This function checks for a license.
Created 27th November 2022, last changed 27th November 2022