size
Text sizes. The Labels & text size switch of the settings dialog (Tiny 0.75x, Small 0.875x, Normal, Large 1.25x, Extra-large 1.5x) scales every text size of the script.
#Functions
#size.ptfunction
A text size in typographic points.
size.pt(pt: const float): size| Parameter | Type | Description |
|---|---|---|
pt | const float | Points. |
Returns size.
Example
const sz = input.size(size.pt(9), "Label size")Since ChartScript 1
#size.pxfunction
A text size in pixels (6-48).
size.px(px: const float): size| Parameter | Type | Description |
|---|---|---|
px | const float | Pixels. |
Returns size.
Example
const sz = input.size(size.px(12), "Label size")Since ChartScript 1
#size.relfunction
A text size relative to the default (1 = default, 1.2 = 20 % larger).
size.rel(scale: const float): size| Parameter | Type | Description |
|---|---|---|
scale | const float | The factor (0.5-4). |
Returns size.
Example
const sz = input.size(size.rel(1.2), "Label size")Since ChartScript 1
#Constants
| Name | Type | Description |
|---|---|---|
size.auto | size | Size: auto. |
size.huge | size | Size: huge. |
size.large | size | Size: large. |
size.normal | size | Size: normal. |
size.small | size | Size: small. |
size.tiny | size | Size: tiny. |