Everything needed to present one text slot. Where it sits, and which registered font, alignment, and colour to use, plus up to three smaller font and rect tiers to step down to when the text would overflow. More...
#include <zone.h>
Data Fields | |
| GRect | rect |
| Area for the main font. | |
| FontId | font_id |
| The main font to try first. | |
| GTextAlignment | align |
| Text alignment, used at every tier. | |
| GColor | color |
| Text colour, used at every tier. | |
| FontId | font_id_fallback |
| First smaller font to try when the text overflows the main one. | |
| GRect | rect_fallback |
| Area for the first smaller font. | |
| FontId | font_id_fallback2 |
| Second smaller font for the widest strings. | |
| GRect | rect_fallback2 |
| Area for the second smaller font. Leave it zero-sized to skip this step. | |
| FontId | font_id_fallback3 |
| Third smaller font for the widest strings of all. | |
| GRect | rect_fallback3 |
| Area for the third smaller font. Leave it zero-sized to skip this step. | |
Everything needed to present one text slot. Where it sits, and which registered font, alignment, and colour to use, plus up to three smaller font and rect tiers to step down to when the text would overflow.
A face declares a static const table of these, and the engine loops it to build the text layers.