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.5   12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2    Statistic    FMM    Blog  


Changes or sets the font to the one of the parameter Handle.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 11.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.ChangeFontEx"; PDF; FontHandle; FontSize; Style )   More


Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
FontHandle Handle of the new font. $font
FontSize The new font size. 12
Style Font style value.
Can be a combination of values 1 for italic, 2 for bold, 4 for underlined and 8 for striked.


Returns OK or error.


Changes or sets the font to the one of the parameter Handle.
Handle must be a valid font handle that was returned by DynaPDF.SetFont, DynaPDF.SetFontEx, DynaPDF.SetCIDFont, or DynaPDF.LoadFont.
The style flags should be the same as in the initial DynaPDF.SetFont call with exception of the flags Underline or Striked which can be used to underline or strikeout text.
The parameter FontSize must be greater zero.

See also ChangeFontEx function in DynaPDF manual.

See also

Release notes

Blog Entries

This function checks for a paid license.

Created 14th April 2021, last changed 14th April 2021

DynaPDF.ChangeFont - DynaPDF.ChangeFontSize

💬 Ask a question or report a problem

Start Chat