3.7.5.73 System.Font

LabTalk Object Type:

Utility

The font object is a sub-object of the system object. The font object properties allow you to read and alter font-related settings which are set in the OPTION.CNF file. These settings can also be accessed in the Options dialog box. It should be noted that setting these properties through script does not trigger the save as Origin's startup Options dialog, so the value in Options.CNF is not overwritten.


Properties:

Property Access Description
system.font.default$ Read/write,
string

Font to be used when Default is selected from the font drop down list in the Text Control dialog box.

system.font.defaultUI$ Read only
string

Default font used in the Origin interface. Change the font by creating an entry for DefaultUI in the [Font] section of \User Files\Origin.ini. For example ...

[Font]
DefaultUI=Arial
system.font.greekName$ Read/write,
string

Name of font to use for Greek characters in text labels.

system.font.horzEdit Read/write,
numeric

Text orientation for in-place editing. 0 = edit using label orientation, 1 = enable horizontal editing.

system.font.labelColor Read/write,
numeric

Default text label color. Numbers from the color list or set with the color() function.

system.font.labelName$ Read/write,
string

Name of font to use for a text label's default font.

system.font.labelSize Read/write,
numeric

Text label default font size.

system.font.lineSpace Read/write,
numeric

The space between two lines of text in a text label, in percent of the currently selected font size.

system.font.msglog$ Read only
string

Default font used in the Message Log. Change the font by creating an entry for MsgLog in the [Font] section of \User Files\Origin.ini. For example ...

[Font]
MsgLog=Arial
system.font.noIpEdit Read/write,
numeric

In place editing behavior. 0=enable in place editing, 1=disable in-place editing.

system.font.output$ Read only
string

Default font used in the Code Builder Output window. Code Builder must be running to return a value. Change the font by creating an entry for Output in the [Font] section of \User Files\Origin.ini. For example ...

[Font]
Output=Courier New
system.font.pageViewAccurate Read/write,
numeric

Use the printer driver to display the text labels in the graph window when Page View is selected. 1 = enable, 0 = disable.

system.font.simpleSelect Read/write,
numeric

Simple selection mode for text. 0 = enable rotation and skewing (dragging handle to resize text), 1=disable rotation and skewing.

system.font.subOffset Read/write,
numeric

Position of subscript, in percent of the currently selected font size.

system.font.subSize Read/write,
numeric

Subscript and superscript font size, in percent of the currently selected font size.

system.font.supOffset Read/write,
numeric

Position of superscript, in percent of the currently selected font size.

system.font.tabSize --

Not currently implemented.