For Control Group - Use Minimum Font Size of Fit-Text results #169
Replies: 1 comment
-
I've toggled our design over to setting more stringent limits on TMP text fitting, so that it varies the kerning more than the Font, and then also presets a smaller font, so that it doesn't try to expand small text's into larger fonts. When it comes down to it, enabling "Styles" applied at a higher level would be best... to achieve all of this. So here's the result using these more stringent specs for Text size: So in the end, I'd like to be able to Style/Size this along with many other elements all in unison, just by adjusting a Style. And so if you added a good Styling capability to Nova UI -- this feature request become mostly moot. Much less need for it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
TMP has an awesome "Fit Text" feature, which ensures the font fits.
However, to make best use of this, we need to have it use the "smallest result" for a group of controls -- that way they are all consistent with same size font. So the weakest link, controls them all. This is preferable to having a variety of sizes for something like "ListBox" or "Combo Dropdown", etc.
API might look something like this: "FontSizeDependency.Group(ctrl1, ctrl2, ctrl3, ctrl4) (allow nulls)
This method, right after layout, would take a 2nd pass at Font Size -- comparing all Listed controls, and then setting them ALL to the smallest of in the list.
Sample Image -- I want both buttons here to always have the same Font size, without losing the advantage of TMP's "Text Fitting" feature.
and here's a ComboBox Dropdown, expanded, with various font sizes: (These should be the same)
Beta Was this translation helpful? Give feedback.
All reactions