Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.Table.SetFont
Sets the font that is used to output text.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 3.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.Table.SetFont"; Table; Row; Col; Name { ; Style; Embed; CodePage } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Table | The identifier for the table. | $Table | |
Row | The row number. Range from 0 to DynaPDF.Table.GetNumRows-1. Pass -1 for all rows. | 0 | |
Col | The column number. Range from 0 to DynaPDF.Table.GetNumCols-1. Pass -1 for all columns. | 0 | |
Name | The font name. | "Arial" | |
Style | The font style. Default is 0. |
0 | Optional |
Embed | Whether to embed font. Can be 1 to embed or 0 to not embed font. Default is 1 since version 12.3. |
1 | Optional |
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. |
"Unicode" | Optional |
Result
Returns OK or error message.
Description
Sets the font that is used to output text.The font is inherited from the table, column, and row, in this order. The font will be loaded when the table is drawn. The default font size is 10 units. It can be changed with DynaPDF.Table.SetFontSize. The default font selection mode is FamilyName. It can be changed with DynaPDF.Table.SetFontSelMode.
See also DynaPDF.SetFont for more details.
Examples
Sets font for all cells to Helvetica:
MBS("DynaPDF.Table.SetFont"; $table; -1; -1; "Helvetica"; 0; 1; "unicode")
Sets row to bold:
Set Variable [$r; Value:MBS("DynaPDF.Table.SetFont"; $table; $row; -1; "Helvetica"; 2; 1; "unicode")]
See also
- DynaPDF.SetFont
- DynaPDF.Table.AddRows
- DynaPDF.Table.GetNumCols
- DynaPDF.Table.GetNumRows
- DynaPDF.Table.Release
- DynaPDF.Table.SetCellText
- DynaPDF.Table.SetColor
- DynaPDF.Table.SetFlags
- DynaPDF.Table.SetFontSelMode
- DynaPDF.Table.SetFontSize
Release notes
- Version 13.5
- Changed DynaPDF.Table.SetFont to have Style, Embed and CodePage parameters be optional with default style, embed = 1 and CodePage = Unicode.
- 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.
Example Databases
- DynaPDF/Book Creation
- DynaPDF/Catalog with tables
- DynaPDF/Invoice/Invoice
- DynaPDF/Merge PDFs
- DynaPDF/Report
- DynaPDF/Tables
Blog Entries
- MBS FileMaker Plugin, version 13.5pr6
- MBS FileMaker Plugin, version 12.3pr1
- MBS FileMaker Plugin, version 11.6pr2
- Merge PDF with table of contents
This function checks for a license.
Created 18th August 2014, last changed 25th October 2023