CAD Fonts
3 nodes
On this page 3
From Data
FunctionSnapshots 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
| name | type | default | description |
|---|---|---|---|
| data | Byte Array | — | |
| faceIndex | Integer | 0 |
Returns
| result | Cad Font |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD Fonts
- Package
- CAD
Read File
FunctionReads 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
| name | type | default | description |
|---|---|---|---|
| path | Text | — | |
| faceIndex | Integer | 0 |
Returns
| result | Cad Font |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD Fonts
- Package
- CAD
System Font
FunctionSnapshots 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
| name | type | default | description |
|---|---|---|---|
| family | Text | — |
Returns
| result | Cad Font |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- CAD Fonts
- Package
- CAD