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
XL.Font.SetName
Sets the name of the font.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| XL | 3.5 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| book | The reference to the workbook. Please use XL.LoadBook to load a file. | $ref |
| Font | The index of the font in the book to target. | 0 |
| Value | The new font name. | "Arial" |
Result
Returns OK or error.
Description
Sets the name of the font.Default name is "Arial".
Examples
Create a font:
Set Variable [$textFont; Value:MBS( "XL.Book.AddFont"; $book)]
Set Variable [$r; Value:MBS( "XL.Font.SetSize"; $book; $textfont; 8)]
Set Variable [$r; Value:MBS( "XL.Font.SetName"; $book; $textfont; "Century Gothic")]
See also
- XL.Book.AddFont
- XL.Book.AddFormat
- XL.Font.GetName
- XL.Font.GetSize
- XL.Font.SetBold
- XL.Font.SetSize
- XL.Format.SetAlignV
- XL.Format.SetFont
- XL.LoadBook
- XL.Sheet.CellWriteText
Example Databases
Created 18th August 2014, last changed 5th May 2016
XL.Font.SetItalic - XL.Font.SetScript
Feedback: Report problem or ask question.
Links
MBS Xojo tutorial videos