Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
XL.Book.AddFont
Adds a new font to the workbook, initial parameters can be copied from other font.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
XL | 3.5 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "XL.Book.AddFont"; bookRef { ; initFont } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
bookRef | The reference to the workbook. Please use XL.LoadBook to load a file. | $ref | |
initFont | The index of an existing font which you want to use as a template. | 0 | Optional |
Result
Returns new font index or error.
Description
Adds a new font to the workbook, initial parameters can be copied from other font.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.AddFormat
- XL.Book.AddSheet
- XL.Font.SetName
- XL.Font.SetSize
- XL.Format.SetAlignH
- XL.Format.SetAlignV
- XL.Format.SetFont
- XL.Sheet.CellWriteFormula
- XL.Sheet.CellWriteText
- XL.Sheet.SetCellFormats
Release notes
- Version 11.2
- Added XL.Book.AddFontFromBook and XL.Book.AddFormatFromBook functions.
Example Databases
Blog Entries
FileMaker Magazin
This function checks for a license.
Created 18th August 2014, last changed 5th May 2016