Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.TestGlyphs
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 |
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
text | Text to be checked. | "Hello World" |
Result
Returns number or error.
Description
Checks whether all glyphs of the text are available in the current font.The return value is the position of the first missing glyph, or -1 if all glyphs are available.
If the font uses a mixed 8/16 bit CJK code page that requires a conversion to Unicode (a code page that ends with "_Uni"), the return value corresponds to the converted Unicode string and not to the CJK input string.
See also TestGlyphs function in DynaPDF manual.
Examples
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 ]
See also
Release notes
- Version 14.2
- Improved DynaPDF.TestGlyphs to return error message in case you call it outside an open page.
- Version 13.0
- Added DynaPDF.TestGlyphs function.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 14.2pr5
- New in MBS FileMaker Plugin 13.0
- Neues MBS Plugin 13.0 für Claris FileMaker
- MBS Plugin 13.0 for Claris FileMaker
- MBS FileMaker Plugin, version 12.6pr1
This function checks for a license.
Created 27th November 2022, last changed 27th November 2022
