# TextStyle

Adds a new text style to the solution. The `Style` property of a 2D Text Node and the `TextStyle` property of controls such as the text control and the text button control reference this text style.

<div drawio-diagram="9046"><img src="https://doc3161en.candera.eu/uploads/images/drawio/2026-06/drawing-4-1782107706.png" alt=""/></div>

<table border="1" id="bkmrk-%E9%A0%85%E7%9B%AE%E5%90%8D-%E8%AA%AC%E6%98%8E-%E4%BF%9D%E5%AD%98%E5%85%88%E3%83%91%E3%82%B9-%E6%96%B0%E8%A6%8F%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%E3%82%A2" style="width: 800px; border-collapse: collapse;"><thead><tr><th style="width: 22.5237%; background-color: rgb(35, 111, 161);"><span style="color: rgb(255, 255, 255);">Item</span></th><th style="width: 77.4763%; background-color: rgb(35, 111, 161);"><span style="color: rgb(255, 255, 255);">Description</span></th></tr></thead><tbody><tr><td style="width: 22.5237%;">Destination path</td><td style="width: 77.4763%;">Specifies the folder in the solution where the system places the new item. Click **Browse...** to select an existing folder.</td></tr><tr><td style="width: 22.5237%;">Replacement Character</td><td style="width: 77.4763%;">Specifies the character that the system uses as a substitute when the requested character is not available in the font. The default value is <code>U&#43;FFFD</code>.</td></tr><tr><td style="width: 22.5237%;">Name</td><td style="width: 77.4763%;">Sets the name of the new item.</td></tr><tr><td style="width: 22.5237%;">Description</td><td style="width: 77.4763%;">Describes the new item in detail.</td></tr><tr><td style="width: 22.5237%;">Annotations</td><td style="width: 77.4763%;">Serves as storage for notes and other project-related information. The system exports the entered text to the HMI report.</td></tr><tr><td style="width: 22.5237%;">URI</td><td style="width: 77.4763%;">You can set any URI. If you enter a valid URI, clicking it launches the browser and displays the contents of the link.</td></tr><tr><td style="width: 22.5237%;">Export Always</td><td style="width: 77.4763%;">Specifies whether the system always includes this item as part of the asset.</td></tr><tr><td style="width: 22.5237%;">Base Style</td><td style="width: 77.4763%;">Specifies the base Style. A <code>GetFont</code> method call for a code point in a range that is not defined in a StyleEntry is resolved by the base Style specified here. The following are typical styles included in the ConstructionKit (they may differ depending on your environment).  

- ConstructionKit.ArabicRegularStyle
- ConstructionKit.EnglishRegularStyle
- ConstructionKit.JapaneseRegularStyle
- ConstructionKit.KoreanRegularStyle
- ConstructionKit.OpenSans25 / OpenSans35 / OpenSans96
- ConstructionKit.OpenSansRegular25 / OpenSansRegular35 / OpenSansRegular96
- ConstructionKit.Roll Lens
- ConstructionKit.SimplifiedChineseRegularStyle
- ConstructionKit.ThaiRegularStyle
- ConstructionKit.Vera25 / Vera32 / Vera96

</td></tr><tr><td style="width: 22.5237%;">Default Font</td><td style="width: 77.4763%;">Specifies the default font by path. When no base Style is defined, the <code>GetFont</code> method retrieves the default font specified here for code points that do not fall within any range defined in StyleEntry. Click the browse button on the right to select a font.</td></tr></tbody></table>