Texts
Overview
The Texts widget is a technical helper container for TouchGFX. It bundles all standard text styles (typographies) and the Poppins font family used across UNA Watch applications into a single importable package. Its purpose is to pre-populate a new project with the complete set of text templates in one step, rather than creating them manually.
Purpose
When starting a new app, import this container to instantly have all required fonts and text styles available in TouchGFX Designer. Once you have copied the needed text styles into your own screens, you can delete the Texts container along with any unused text IDs and typographies to reduce the final application size.
Included Fonts
File |
Weight |
|---|---|
|
Regular |
|
Medium |
|
SemiBold |
|
Italic |
All typographies use 4 bpp anti-aliasing and include the full printable ASCII character set plus the ellipsis character (…).
Available Typographies
Typography ID |
Font |
Size (px) |
|---|---|---|
|
Regular |
14 |
|
Regular |
16 |
|
Regular |
18 |
|
Medium |
10 |
|
Medium |
18 |
|
Medium |
25 |
|
Medium |
50 |
|
SemiBold |
18 |
|
SemiBold |
20 |
|
SemiBold |
25 |
|
SemiBold |
30 |
|
SemiBold |
35 |
|
SemiBold |
40 |
|
SemiBold |
60 |
|
Italic |
18 |
|
Italic |
20 |
Text ID Naming Convention
Every typography is represented by three text IDs — one per alignment:
Suffix |
Alignment |
|---|---|
(none) |
Center |
|
Left |
|
Right |
For example, Poppins_SemiBold_30 provides:
TMP_SEMIBOLD_30— center-alignedTMP_SEMIBOLD_30_L— left-alignedTMP_SEMIBOLD_30_R— right-aligned
This gives 48 template text IDs in total. All use a wildcard placeholder (<>) so their rendered content is always supplied at runtime.
Usage in TouchGFX Designer
Import the package:
Open TouchGFX Designer
Go to
Edit→Import→Custom ContainersSelect
Texts.tpkg
Place on a temporary screen (or any screen) — the container does not need to be visible; importing it is enough to register the fonts and text IDs in the project.
Use a text style in your own TextArea components:
In the TextArea properties, set the Text ID field to the desired
TMP_*identifier (e.g.TMP_SEMIBOLD_40)Add a Wildcard 1 to the TextArea and set its value — this is the actual text content that will be rendered at runtime
Clean up when done:
Delete the Texts custom container from your screen
In the Texts editor, remove any
TMP_*text IDs that are not referenced by your own componentsRemove unused typographies to reduce flash memory usage
Files Included
manifest.xml— package manifest (requires TouchGFX ≥ 4.26.1)content/CustomContainerExport.touchgfx— Designer container definitioncontent/CustomContainerManifest.xml— list of texts, typographies, and fontscontent/texts.xml— full text database with all 48 template IDs and 16 typographiesfiles/gui/include/gui/containers/Texts.hpp— generated headerfiles/gui/src/containers/Texts.cpp— generated sourcefiles/assets/fonts/— 4 Poppins TTF font files
Dependencies
TouchGFX Framework (minimum version 4.26.1)
No runtime C++ dependencies — the container has no custom logic beyond the generated base class