Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Currently, it appears that the text layout is only horizontal. Is it possible to implement vertical text layout? #252

Open
theSha1do1w opened this issue Jul 23, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@theSha1do1w
Copy link

Is your feature request related to a problem? Please describe.
I want to render vertical text.

Describe the solution you'd like
can set 'vertical' to textblob

Describe alternatives you've considered
Currently can only render character by character.

@HinTak
Copy link
Collaborator

HinTak commented Jul 23, 2024

I don't think vertical layout functionality is ever going to be in TextBlob, as it really belongs to skparagraph and skshaper: #225 #211 . Have a look at the upstream API in those two and see what you need, and we'll consider putting it in, in a future release.

@HinTak HinTak added the enhancement New feature or request label Jul 23, 2024
@HinTak
Copy link
Collaborator

HinTak commented Aug 12, 2024

I have had a good look around, plenty of ltr, rtl textdirection references, but not ttb / btt (top to bottom, bottom to top) . Those are definitely available in harfbuzz . Had a look around skia's issue tracker also, nothing. Probably should file an issue there.

You can probably "similate" a vertical layout with skparagraph by choosing centred alignment, but it won't pick rotated quotes. I think this really belongs to libskshaper.

Oh, we do use libskshaper with Textblob.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants