LogoLogo
Version 3
Version 3
  • Version 3
  • Welcome to Flying Logic 3
  • Flying Logic Resources
  • Recommended Reading
  • Flying Logic 3 User Guide
    • Getting Started
    • What's New
    • Reader Mode
    • The Document Window
    • Constructing Graphs
    • Graph Logic
    • Domains
    • Chart View
    • Scripting
    • Menus
    • Keyboard Shortcuts
    • Preferences
    • Project Management
  • Flying Logic 3 Scripting Guide
    • Getting Started
    • Online Resources
    • Predefined Variables
    • Classes
      • Application
      • CalendarEvent
      • Color
      • Date
      • Document
      • Domain
      • Edge
      • EntityClass
      • Entity
      • FontSpec
      • GraphElemFilter
      • GraphElem
      • GraphOperator
      • Group
      • Junctor
      • LayoutLine
      • Resource
      • Symbol
      • TextEditor
      • VertexElem
      • VertexOperator
      • Workweek
    • Constants
    • Graphic Symbol Names
    • Importer and Exporter Examples
    • Flying Logic Document Format
  • Thinking with Flying Logic
    • Part I: Introduction
    • About This Book
    • Keys to Great Thinking
    • Part II: The Theory of Constraints Thinking Processes
    • Overview of the Theory of Constraints
    • The Categories of Legitimate Reservation
    • Current Reality Tree
    • Evaporating Cloud: Conflict Resolution
    • Future Reality Tree
    • Prerequisite Tree
    • Transition Tree
    • Strategy & Tactics Tree
    • Part III: Other Techniques
    • Evidence-Based Analysis
    • Concept Maps
Powered by GitBook
On this page
  • Fields
  • Methods
  • Constants

Was this helpful?

  1. Flying Logic 3 Scripting Guide
  2. Classes

FontSpec

The FontSpec class represents a specification for a font. The constructor is accessible from scripts.

Fields

Field

Type

Description

family

string

Read only. The font family; e.g., Arial, New Times Roman, SansSerif, etc.

style

Font Style Type

Read Only. The derived style of the font, plain, bold, italic or bold/italic. Note that fonts like Arial Bold that have an inherent style have this field set to plain.

size

number or AUTOSIZE

ascent

number

descent

number

uppercaseHeight

number

Methods

init( family, style, size )

Creates a new FontSpec with the given family, style and size.

Constants

Font Style Type

PLAIN

Indicates a style of plain.

BOLD

Indicates a style of bold. This can be or’ed with ITALIC.

ITALIC

Indicates a style of italic. This can be or’ed with BOLD

Font Size Type

AUTOSIZE
PreviousEntityNextGraphElemFilter

Last updated 1 year ago

Was this helpful?

Read Only. The point size of the font. Can be set to AUTOSIZE when the entityTitleFont field of the is involved.

Read only. The ascent of the font. If you construct a at runtime, you must call the calcFont method in a instance to make this field valid.

Read only. The descent of the font. If you construct a at runtime, you must call the calcFont method in a instance to make this field valid.

Read only. The maximum ascent of the letters X, O, and M of the font. If you construct a at runtime, you must call the calcFont method in a instance to make this field valid.

Indicates the size should be determined algorithmically. Only used for the entityTitleFont field of .

Document
Document
FontSpec
Document
FontSpec
Document
FontSpec
Document