Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1    Statistic    FMM    Blog  

DynaPDF.AddFontSearchPath

Adds a search path to the list of available font search paths.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 4.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.AddFontSearchPath"; PDF; Path; Recursive )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Path Path to font file directory or path to font file. "C:\Fonts"
Recursive Include subdirectories (search recursively).
Pass 1 for recursive or 0 for not recursive.
1

Result

Returns number of fonts loaded or error message.

Description

Adds a search path to the list of available font search paths.
An arbitrary number of search paths can be added at runtime. Subdirectories are added recursively if the parameter Recursive is 1.
Result may be 0 if all those fonts in were already loaded.

See also AddFontSearchPath function in DynaPDF manual.

Examples

Loads font folder on Windows:

MBS( "DynaPDF.AddFontSearchPath"; $pdf; "C:\Fonts"; 1 )

See also

Release notes

Blog Entries

This function checks for a paid license.

Created 18th August 2014, last changed 11st November 2022


DynaPDF.AddDeviceNSeparations - DynaPDF.AddOutputIntent

💬 Ask a question or report a problem


Start Chat