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
MBS(
"DynaPDF.ChangeFont"; /* This function changes or sets the font to the one of the parameter FontHandle. */
$PDF; /* The PDF reference returned from
DynaPDF.New. */
$FontHandle) /* Handle of the new font.e.g. $font */
Less
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
- Version 12.0
- Version 11.2
This function checks for a license.
Created 18th August 2014, last changed 27th May 2017
DynaPDF.ChangeBookmark
-
DynaPDF.ChangeFontEx