Divooka Reference

CAD Fonts

3 nodes

On this page 3

From Data

Function

Snapshots font bytes, including the selected face of a collection. Later changes to the input array cannot alter the font.

Signature
FromData(data: Byte Array, faceIndex: Integer) -> Cad Font
CadFont FromData(byte[] data, int faceIndex = 0)

Parameters

nametypedefaultdescription
dataByte Array—
faceIndexInteger0

Returns

resultCad Font
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
CAD Fonts
Package
CAD

Read File

Function

Reads and snapshots an outline font file. Subsequent file edits do not affect this value.

Signature
ReadFile(path: Text, faceIndex: Integer) -> Cad Font
CadFont ReadFile(string path, int faceIndex = 0)

Parameters

nametypedefaultdescription
pathText—
faceIndexInteger0

Returns

resultCad Font
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
CAD Fonts
Package
CAD

System Font

Function

Snapshots an installed font family, choosing its closest regular face. Missing families fail explicitly; use ReadFile for reproducible cross-machine font selection.

Signature
SystemFont(family: Text) -> Cad Font
CadFont SystemFont(string family)

Parameters

nametypedefaultdescription
familyText—

Returns

resultCad Font
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
CAD Fonts
Package
CAD