Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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 |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
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
- DynaPDF.ChangeFontEx
- DynaPDF.ChangeFontSize
- DynaPDF.ChangeFontStyle
- DynaPDF.ChangeFontStyleEx
- DynaPDF.New
- DynaPDF.SetFont
- DynaPDF.SetFontEx
Release notes
- Version 12.0
- Changed DynaPDF.SetFont, DynaPDF.Table.SetFont, DynaPDF.SetFontEx, DynaPDF.ChangeFontEx, DynaPDF.SetFieldFont and DynaPDF.SetBookmarkStyle functions to accept styles as text.
- Version 11.2
- Added DynaPDF.ChangeFontEx function.
This function checks for a license.
Created 18th August 2014, last changed 27th May 2017