Hello,
We’re using CommonUI for our in-game text, leveraging Composite Fonts to manage various font families. This setup works well for substituting fonts for different cultures (e.g., Chinese) to ensure correct display.
However, we’re encountering a significant issue with line height. Both the TextBlock widget and CommonUI’s TextStyle Blueprints have a “Line Height Percentage” property. The problem is that this property applies globally, modifying the line height for all languages, even those that don’t require adjustment.
Ideally, we need a way to either:
- Reduce the line spacing for specific fonts or cultures (e.g., Chinese) without affecting others.
- Get the TextBlock widget to dynamically adjust its size based on the actual rendered characters, rather than accounting for the full potential character height of the font (which often leads to excessive padding, as shown in the attached image).
We’ve explored the IsAscendOverriden and IsDescendOverriden font properties, but these tend to misalign text within the TextBlock, making UI layout much more difficult.Any insights or potential solutions would be greatly appreciated!
Thanks,