Enum UIFontStyle
Bitfield flags that specify the typographic decoration applied to a UI text element.
Namespace: Scylla.Core.Util.UI
Assembly: ScyllaCore.dll
Syntax
[Flags]
public enum UIFontStyle
Remarks
Values map 1-to-1 to TMP's FontStyles enum. The conversion is
performed internally by ToFontStyles(UIFontStyle) so
consumers never need to reference the TMP namespace.
Multiple styles can be combined with the bitwise OR operator:
text.SetFontStyle(UIFontStyle.Bold | UIFontStyle.Italic);
Fields
| Name | Description |
|---|---|
| Bold | Renders characters using the bold weight of the font atlas. Increases stroke thickness for emphasis. |
| Highlight | Draws a colored rectangular highlight behind each character, similar to a text marker. The highlight color is determined by the active TMP material or rich text tag. |
| Italic | Renders characters using the italic (slanted) variant of the font atlas. If the atlas has no dedicated italic glyph, TMP applies a synthetic skew. |
| LowerCase | Converts all characters to their lowercase representation before rendering, regardless of the original casing in the source string. |
| Normal | No typographic decoration; the font renders in its default upright weight. |
| SmallCaps | Renders lowercase letters as smaller versions of their uppercase counterparts, set at a reduced scale relative to normal capitals. |
| Strikethrough | Draws a horizontal line through the middle of each character, commonly used to indicate deleted or invalid content. |
| Subscript | Renders characters at a smaller scale and lowered below the baseline, suitable for chemical formulas and mathematical notation. |
| Superscript | Renders characters at a smaller scale and raised above the baseline, suitable for footnote markers, exponents, and ordinal suffixes. |
| Underline | Draws a horizontal line beneath each character at the baseline. |
| UpperCase | Converts all characters to their uppercase representation before rendering, regardless of the original casing in the source string. |