-
Our demo examples/fonts/test_local_characters was improved a lot.
It’s now both simpler and more powerful, shows the advised approaches: just set up TCastleFont to load fonts from TTF/OTF and assign it to
TCastleUserInterfaceFont.CustomFont
(likeTCastleLabel.CustomFont
) orTCastleText.CustomFont
. -
With big thanks to Freedomax, our
TCastleEdit
now works with Windows IME much better. The IME popup appears at a proper place, and is thus visibly associated with the input box. This is great for languages relying on IME for input, like Chinese. See PR 457 for movie how it looks. -
The way we calculate font sizes is now easily customizable using published properties (available also in editor):
-
Font sizes have also better names, following standard conventions:
TCastleAbstractFont.Height
(previousRowHeight
)TCastleAbstractFont.CapHeight
(previousRowHeightBase
)TCastleAbstractFont.DescenderHeight
(previousDescend
)
See terminology: Metric typographic units – Wikipedia, Glossary – Google Fonts.
International fonts improvements: better sizing properties, better IME support on Windows (to input e.g. Chinese in TCastleEdit), better example
Start the discussion at Castle Game Engine Forum