Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   7.6    Statistic  

DynaPDF.Table.SetFont

Sets the font that is used to output text.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.5 Yes Yes Yes Yes Yes

MBS( "DynaPDF.Table.SetFont"; Table; Row; Col; Name; Style; Embed; CodePage )

Parameters

Parameter Description Example value
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. 0
Embed Whether to embed font. Can be 1 to embed or 0 to not embed font. 1
CodePage The code page to use. "Unicode"

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

Example Databases


DynaPDF.Table.SetFlags   -   DynaPDF.Table.SetFontSelMode

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins