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: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

DynaPDF.ChangeFont

This function changes or sets the font to the one of the parameter FontHandle.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.ChangeFont"; PDF; FontHandle )   More

Parameters

Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
FontHandle Handle of the new font. $font

Result

Returns OK or error message.

Description

This function changes or sets the font to the one of the parameter FontHandle.
FontHandle must be a valid font handle that was returned by DynaPDF.SetFont, DynaPDF.SetFontEx, DynaPDF.SetCIDFont, or DynaPDF.LoadFont.
The font size is taken from the current font if any. If no font is active when the function is called, the font size will be set to the value that was used to load font the last time.

See also ChangeFont function in DynaPDF manual.

See also

Release notes

Created 18th August 2014, last changed 27th May 2017


DynaPDF.ChangeBookmark - DynaPDF.ChangeFontEx

Feedback: Report problem or ask question.