Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/DEVELOPER/release-notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,14 @@ In the Roku OS 9.0 release, the **eval()** function was deprecated and developer

**Initial rollout date**: September 24, 2024

Roku OS 14.0 includes new SceneGraph features for displaying monospaced text in your apps. Developers can use the new [**MonospaceLabel** node](/docs/references/scenegraph/label-nodes/monospace-label.md) to draw a single line of text with all characters spaced at a fixed distance from each other. This functions as an alternative to using a monospace font with the **Label** node. In addition, the [**LabelBase** node](/docs/references/scenegraph/abstract-nodes/labelbase.md) includes a new [**monospacedDigits** field](/docs/references/scenegraph/abstract-nodes/labelbase.md#fields) that enables the rendering of tabular digits in overhang time values and countdowns.
Roku OS 14.0 includes new SceneGraph features for displaying monospaced text in your apps. Developers can use the new [**MonospaceLabel** node](/docs/references/scenegraph/label-nodes/monospace-label.md) to draw a single line of text with all characters spaced at a fixed distance from each other. This functions as an alternative to using a monospace font with the **Label** node. In addition, the [**LabelBase** node](/docs/references/scenegraph/abstract-nodes/label-base.md) includes a new [**monospacedDigits** field](/docs/references/scenegraph/abstract-nodes/label-base.md#fields) that enables the rendering of tabular digits in overhang time values and countdowns.

In addition, Roku OS 14.0 includes features that enhance the performance of media playback and Roku devices in general and expand platform support for industry standards covering content metadata.

Here is the list of key developer-facing Roku OS 14.0 updates:

* [**MonospaceLabel**](/docs/references/scenegraph/label-nodes/monospace-label.md) — The [**MonospaceLabel** node](/docs/references/scenegraph/label-nodes/monospace-label.md) is used to draw a single line of text with all characters spaced at a fixed distance from each other. It transforms proportional fonts into monospaced fonts. It is a substitute for using a monospace font with the **Label** node.
* [**LabelBase.monospacedDigits**](/docs/references/scenegraph/abstract-nodes/labelbase.md#fields) — The LabelBase.monospacedDigits field is used to render monospaced digits.
* [**LabelBase.monospacedDigits**](/docs/references/scenegraph/abstract-nodes/label-base.md#fields) — The LabelBase.monospacedDigits field is used to render monospaced digits.

## Roku OS 13.0

Expand Down
6 changes: 3 additions & 3 deletions docs/REFERENCES/scenegraph/abstract-nodes/label-base.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: "LabelBase"
excerpt: ''
excerpt: 'The abstract base class for the Label and MultiStyleLabel nodes, providing text alignment, wrapping, auto-truncating, and other shared text-display behavior'
deprecated: false
hidden: false
metadata:
title: ''
description: ''
title: 'LabelBase'
description: 'The LabelBase node is an abstract base class for the Label and MultiStyleLabel nodes. It provides dimensions, text alignment, wrapping, auto-truncating, and other common functionality shared by its child nodes.'
robots: index
next:
description: ''
Expand Down
10 changes: 5 additions & 5 deletions docs/REFERENCES/scenegraph/label-nodes/index.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: "Label nodes"
excerpt: ''
excerpt: 'SceneGraph nodes for rendering text on screen: Label, MultiStyleLabel, MonospaceLabel, and InfoPane'
deprecated: false
hidden: false
metadata:
title: ''
description: ''
title: 'Label nodes'
description: 'Label nodes let you render text on screen in your SceneGraph apps. This page covers Label, MultiStyleLabel, MonospaceLabel, and InfoPane, and points to related text-rendering nodes elsewhere in the SceneGraph docs.'
robots: index
next:
description: ''
Expand Down Expand Up @@ -51,8 +51,8 @@ MultiStyleLabel and InfoPane in action:
* **For long passages of scrollable text** like license agreements, use [ScrollableText](doc:scrollabletext).
* **For lines that auto-scroll when they overflow**, use [ScrollingLabel](doc:scrollinglabel). It ellipsizes then scrolls horizontally on a loop.
* **For a lighter, more memory-efficient label**, use [SimpleLabel](doc:simplelabel) in [Renderable nodes](doc:renderable-nodes), a stripped-down single-line label with a simplified font model.
* **For alignment, wrapping, truncation, or rotation controls**, see [LabelBase](doc:labelbase), the abstract base class shared by Label and MultiStyleLabel.
* **For alignment, wrapping, truncation, or rotation controls**, see [LabelBase](doc:label-base), the abstract base class shared by Label and MultiStyleLabel.

## Inheritance

Label and MultiStyleLabel both extend [**LabelBase**](doc:labelbase), so most of their field reference (alignment, wrapping, ellipsis behavior, rotation) is documented on the LabelBase page rather than repeated on each. MonospaceLabel and InfoPane do not extend LabelBase and define their own fields directly.
Label and MultiStyleLabel both extend [**LabelBase**](doc:label-base), so most of their field reference (alignment, wrapping, ellipsis behavior, rotation) is documented on the LabelBase page rather than repeated on each. MonospaceLabel and InfoPane do not extend LabelBase and define their own fields directly.
6 changes: 3 additions & 3 deletions docs/REFERENCES/scenegraph/label-nodes/label.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ next:
---


Extends [**LabelBase**](doc:labelbase)
Extends [**LabelBase**](doc:label-base)

> As of [Roku OS 10.5](doc:release-notes#roku-os-105), the Label node inherits most of its functionality from [LabelBase](doc:labelbase) node class. Developers, however, do not need to update their app code to account for this refactoring.
> As of [Roku OS 10.5](doc:release-notes#roku-os-105), the Label node inherits most of its functionality from [LabelBase](doc:label-base) node class. Developers, however, do not need to update their app code to account for this refactoring.

The Label node class is used to display a string of text.

Expand Down Expand Up @@ -51,7 +51,7 @@ The following displays the text string "Application Development Made Easy!" in t

## Fields

Fields derived from the [Group](doc:group) and [LabelBase](doc:labelbase) classes can be used.
Fields derived from the [Group](doc:group) and [LabelBase](doc:label-base) classes can be used.


<table>
Expand Down
4 changes: 2 additions & 2 deletions docs/REFERENCES/scenegraph/label-nodes/monospace-label.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ The **MonospaceLabel** node is used to draw a single line of text with all chara
| text | string | | READ_WRITE | Specifies the text to be displayed |
| color | color | 0xddddddff | READ_WRITE | Specifies the text color |
| font | Font | system default | READ_WRITE | Specifies the Font node to be used |
| horizAlign | string | left | READ_WRITE | See [Horizontal Alignment](doc:labelbase#horizontal-alignment) |
| vertAlign | string | top | READ_WRITE | See [Vertical Alignment](doc:labelbase#vertical-alignment) |
| horizAlign | string | left | READ_WRITE | See [Horizontal Alignment](doc:label-base#horizontal-alignment) |
| vertAlign | string | top | READ_WRITE | See [Vertical Alignment](doc:label-base#vertical-alignment) |
| width | float | 0 | READ_WRITE | Specifies the width of the label. If set to zero, the width of the label will be set automatically |
| height | float | 0 | READ_WRITE | Specifies the height of the label. If set to zero, the height of the label will be set automatically |
| characterWidth | float | 0 | READ_WRITE | Specifies the width of the label characters. If set to zero, width of font’s character 'M' will be used |
Expand Down
4 changes: 2 additions & 2 deletions docs/REFERENCES/scenegraph/label-nodes/multi-style-label.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ metadata:
next:
description: ''
---
Extends [**LabelBase**](doc:labelbase)
Extends [**LabelBase**](doc:label-base)

The MultiStyleLabel node class is used to create labels with mixed styles. For example, this node can be used to create a single label with plain and bold text, different fonts, and/or multiple colors.

![roku815px - img](https://image.roku.com/ZHZscHItMTc2/emoji-multistylelabel-v3.png)

## Fields

Fields derived from the [Group](doc:group) and [LabelBase](doc:labelbase) classes can be used.
Fields derived from the [Group](doc:group) and [LabelBase](doc:label-base) classes can be used.

| Field | Type | Description |
| :------------ | :-------------------------------------- | :------------------------------------------------------------------------------------------------ |
Expand Down
Loading