Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.SetFontEx
Loads a font that can be used for text output and interactive form fields.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.SetFontEx"; PDF; Name; Style; Size; Embed; CodePage ) More
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
Name | Font name for new font to set or empty text to deactivate current font. | "Arial" |
Style | Font style value. Can be a combination of values 1 for italic, 2 for bold, 4 for underlined and 8 for striked. | 3 |
Size | Font size in points. | 12 |
Embed | Whether to embed font in PDF. Can be 1 to embed or 0 to not embed. Default is 1 since version 12.3. |
1 |
CodePage | The code page to use. Code page can be 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258, 8859-2, 8859-3, 8859-4, 8859-5, 8859-6, 8859-7, 8859-8, 8859-9, 8859-10, 8859-13, 8859-14, 8859-15, 8859-16, Symbol, 437, 737, 775, 850, 852, 855, 857, 860, 861, 862, 863, 864, 865, 866, 869, 874, Unicode. Default is unicode since v12.3, but was 1252 for Windows ANSI before. |
Result
Returns font handle or error message.
Description
Loads a font that can be used for text output and interactive form fields.The difference in comparison to DynaPDF.SetFont is the way how the function tries to find the font.
See also SetFontEx function in DynaPDF manual.
See also
- DynaPDF.ChangeFontEx
- DynaPDF.GetContent
- DynaPDF.GetFontSize
- DynaPDF.Parser.ChangeAltFont
- DynaPDF.SetAltFonts
- DynaPDF.SetContent
- DynaPDF.SetDocInfoEx
- DynaPDF.SetFieldFontEx
- DynaPDF.SetFont
- DynaPDF.SetFontSelMode
Release notes
- Version 12.3
- Changed DynaPDF.SetFont, DynaPDF.SetFieldFont, DynaPDF.SetFontEx and DynaPDF.Table.SetFont to use unicode as default code page.
- Version 12.0
- Changed DynaPDF.SetFont, DynaPDF.Table.SetFont, DynaPDF.SetFontEx, DynaPDF.ChangeFontEx, DynaPDF.SetFieldFont and DynaPDF.SetBookmarkStyle functions to accept styles as text.
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 17th May 2022