Special text style

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Sommar
Posts: 2
Joined: Wed May 04, 2022 7:24 pm

Special text style

Post by Sommar »

Hi,

I just bought DS and would like to build my dialogue with support of some special text styles:

1. The text with emphasis dot beneath:
Image
2. The text with note above:
Image

I'm considering to use yarn spinner/ink as a third party editor. Is there any way I can achieve above effects?

Thanks in advance!
User avatar
Tony Li
Posts: 21555
Joined: Thu Jul 18, 2013 1:27 pm

Re: Special text style

Post by Tony Li »

Hi,

If you plan to use Yarn Spinner or Ink, please be aware that the Dialogue System currently imports Yarn 1.x format, and for Ink the Dialogue System acts as a front-end and runs the Ink Unity Integration under the hood. For all other formats (Yarn, Twine, Arcweave, articy:draft, etc.), it imports into the Dialogue System's native dialogue database format.

That's beside the point in regards to your question, since in all cases the Dialogue System manages the UI. The Dialogue System's default UI system can work with UI Text, TextMesh Pro, or SuperTextMesh. As long as your font supports characters with those diacritical marks, it will work fine. (You can also bypass the Dialogue System's default UI system and provide your own implementation of the simple IDialogueUI C# interface if you prefer to do that instead.)

Furigana may be a little more complicated. You can do it with TextMesh Pro like in this Unity forum post. Side note: Years ago, Joe Strout, the originator of that forum thread, provided a furigana implementation for the Dialogue System's older UI system that used legacy Unity GUI. If you load up an old browser such as Internet Explorer, you can play it here. I can try to dig up the original source if you're interested, but since it uses the older Unity GUI system I recommend using TextMesh Pro with the current UI system instead.
Sommar
Posts: 2
Joined: Wed May 04, 2022 7:24 pm

Re: Special text style

Post by Sommar »

Hi Tony,

Thanks for the great product and quick reply, I will definitely try with TextMesh Pro approach. :)
User avatar
Tony Li
Posts: 21555
Joined: Thu Jul 18, 2013 1:27 pm

Re: Special text style

Post by Tony Li »

Sounds good!
Post Reply