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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DynaPDF.SetFont
The function loads a font that can be used for text output and interactive form fields.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 3.1 | Yes | Yes | Yes | Yes | Yes |
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. | 1 |
| CodePage | The code page to use. Default is 1252 for Windows ANSI. 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 | "Unicode" |
Result
Returns font handle or error message.
Description
The function loads a font that can be used for text output and interactive form fields.See also SetFont function in DynaPDF manual.
Examples
Sets a font:
MBS("DynaPDF.SetFont"; $pdf; "Zapf Dingbats"; 0; 12)
Sets italic font:
MBS("DynaPDF.SetFont"; $pdf; "Times"; 1; 40; 1; "unicode")
See also
- DynaPDF.SetContent
- DynaPDF.SetFontEx
- DynaPDF.SetPageCoords
- DynaPDF.SetTextRect
- DynaPDF.SetUseStdFonts
- DynaPDF.SetUseSystemFonts
- DynaPDF.Table.SetFont
- DynaPDF.WriteFTextEx
- DynaPDF.WriteStyledTextEx
- DynaPDF.WriteText
Example Databases
- DynaPDF/Create PDF with Bezier Curves
- DynaPDF/Create Text as PDFA
- DynaPDF/Merge PDFs
- DynaPDF/Place Picture
- DynaPDF/Shrink PDF pages
- DynaPDF/Signature Appearance
- DynaPDF/WriteFText
- DynaPDF/ZUGFeRD/ZUGFeRD Invoice
- DynaPDF/ZUGFeRD 2.0/Factur-X Invoice
- OCR/OCR with DynaPDF
FileMaker Magazin
Created 18th August 2014, last changed 1st December 2020
DynaPDF.SetFloatPrecision - DynaPDF.SetFontEx
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins