B4J Library Vertical Text Engine

Words in Chinese, Japanese and Korean (CJK) can be arranged vertically and I didn't find a good vertical text engine for B4X. In the previous thread I posted, Erel gave a workground solution but it cannot display multiline text and punctuations correctly, The BCTextEngine does not have this support yet, too. So I decided to make one.

I just use Canvas to draw text and use B4XCanvas to measure text.

Example:

text:

B4X:
今日から
みんなと勉強
する事になった、
灰原哀さん
です!

result:

vertical_japanese.png


Update 2020/10/07

1. Support Text Wrap
2. Bug fixes
 

Attachments

  • VerticalTextEngine_project.zip
    4.4 KB · Views: 156
Last edited:
Top