Page 2 of 2
Re: Change Subtitle Font In the Middle of the String
Posted: Fri Apr 02, 2021 9:45 am
by Tony Li
Thanks for sending the repro project.
The code that determines where to start typing when accumulating text didn't account for spaces in <font="name SDF"> tags. I replied to your email with a fix. The fix will also be in version 2.2.16.
Re: Change Subtitle Font In the Middle of the String
Posted: Wed Aug 23, 2023 3:05 pm
by boz
Hi Tony!
I'm looking for the fix you sent to my email but I think my email ate it. Do you have record of fixes like this? Maybe in another forum post?
Thanks!
Re: Change Subtitle Font In the Middle of the String
Posted: Wed Aug 23, 2023 3:20 pm
by Tony Li
Hi,
Can you back up your project and update to DS version 2.2.39? The fix is in 2.2.16+.
Re: Change Subtitle Font In the Middle of the String
Posted: Wed Aug 23, 2023 4:32 pm
by boz
Ah that's right. Was hoping to fix a currently problem in the most recent version, but this wasn't it. We fixed it another way by adding some padding - it seemed to think the bottom of the box was higher up than it actually was. I'll let you know if it comes up again. Thanks!
Re: Change Subtitle Font In the Middle of the String
Posted: Wed Aug 23, 2023 4:45 pm
by Tony Li
Hi,
Is it a scrolling issue where the bottom of the text is cut off? If so, at runtime pause and check if the subtitle text has a blank line at the beginning or end of the text. If so, and if you're using TextMesh Pro, this is probably the issue. TextMesh Pro has a bug where it computes the height of its text incorrectly if there's a blank line at the top or bottom of the text. Some settings can help address that, such as ticking the subtitle panel's Clear Text On Conversation Start and Clear Text On Close.