Skip to content

jitx/shapes/Text

Package name: jitx/shapes/Text

Summary

Data Types

TextKind

Enum of text shape kinds

Text

Text

Constructors

Function Description
Text Constructor for defstruct Text

Functions

Function Description
outline

Definitions

TextKind

Enum of text shape kinds

public defenum TextKind <: Equalable & Hashable

  • StrokeFont

  • TrueTypeFont

  • BarCode

These follow Altium's definition of TextKind

Text

Text

public defstruct Text <: Shape & HasMetaUtils :
    anchor: Anchor
    font: String
    hide?: True|False
    pose: Pose
    size: Double
    string: String
    text-kind: TextKind
    type: Symbol|False

  • anchor: Anchor - The alignment of this text shape with the pose.

  • font: String - The name of the font use for this text shape.

  • hide?: True|False - Whether or not this text shape is hidden.

  • pose: Pose - The location and flippedness of this text shape.

  • size: Double - The height of each character in this text shape.

  • string: String - The actual character text of this text shape.

  • text-kind: TextKind - The kind of text of this text shape.

  • type: Symbol|False - The type of the text shape.

A shape consisting of alphabetical text of specified size and location.

Constructors

Text

Constructor for defstruct Text

public defn Text (string:String, size:Double, anchor:Anchor, pose:Pose, font:String = ?, text-kind:TextKind = ?, hide?:True|False = ?, type:Symbol|False = ?)

Functions

outline

public defn outline (t:Text)

Related Packages

Forwarded by packages: jitx/shapes, jitx