naninovel / docs

Documentation website
https://naninovel.com
77 stars 28 forks source link

Add more text styling option for novel scripts #55

Closed yuna0x0 closed 5 years ago

yuna0x0 commented 5 years ago

Describe your idea A clear and concise description what should we change or add.

Add more text styling option for novel scripts. (eg, text position [left, center, right, top, bottom, custom position, margin and padding], underline, strikethrough, font border, ruby text, kerning, text opacity (alpha), image-based fonts, change different font, etc.)

Describe possible use cases A concrete example or two on how the proposed change could be used.

Share reference implementations If applicable, add screenshots or links to other resources that shows a similar feature implemented in other VN engines or games.

From Ren'Py Documentation: Text — Ren'Py Documentation Style Properties — Ren'Py Documentation

elringus commented 5 years ago

The in-text formatting (which can be applied via novel scripts) of the built-in printers is unfortunately limited by what Unity allows: https://docs.unity3d.com/Manual/StyledText.html We'll have to wait until TMPro becomes an integral part of Unity to discard the current system and support additional features out of the box.

That said, TMPro extension could actually utilize all the rich text stuff right now, I'll see if it's possible to extend the @style action to support the additional options.

_Storing some references here for the future work, don't mind this: https://forum.unity.com/threads/can-i-make-ruby-character-with-tmp.672685/ https://forum.unity.com/threads/how-to-display-extra-little-characters-above-characters-in-a-text.387772/#post-2534550 http://madnesslabo.net/utage/?page_id=4491&lang=en_

TowerCrow commented 5 years ago

Are there any plans for them to actually integrate TMPro fully? As far as I know, there are no plans for that in the 2019 cycle.

elringus commented 5 years ago

Not sure. I know they're planning to replace uGUI with UIElements eventually, but no idea which text rendering solution they'll use with it.

elringus commented 5 years ago

Implemented in v1.7.0-beta.

https://github.com/Elringus/NaninovelWeb/blob/ad3bf2083992351e943721469e2b8b19cc89fe6a/docs/guide/text-printers.md#text-styles

https://youtu.be/aWdq7YxIxkE