FontFormat

The font format property.

Example

app = pf.GetApplication()
app:NewProject()
app:OpenFile(FEKO_HOME..[[/shared/Resources/Automation/startup.fek]])
graph = app.CartesianGraphs:Add()
graph.Traces:Add(app.Models[1].Configurations[1].FarFields[1])

    -- Edit title 'FontFormat' 

graph.Title.Font.Boldfaced = true
graph.Title.Font.Size = 20

    -- The font family can be set to any font available on the system. For example
    -- graph.Title.Font.Family = "Courier New"

Usage locations

The FontFormat object can be accessed from the following locations:

Property List

Boldfaced
Enables font bold. (Read/Write boolean)
Colour
The font colour. (Read/Write Colour)
Family
The font family. (Read/Write string)
Italicised
Enables font italic. (Read/Write boolean)
Size
The font size. (Read/Write number)
Underlined
Enables font underline. (Read/Write boolean)

Property Details

Boldfaced
Enables font bold.
Type
boolean
Access
Read/Write
Colour
The font colour.
Type
Colour
Access
Read/Write
Family
The font family.
Type
string
Access
Read/Write
Italicised
Enables font italic.
Type
boolean
Access
Read/Write
Size
The font size.
Type
number
Access
Read/Write
Underlined
Enables font underline.
Type
boolean
Access
Read/Write