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

Does ag-psd support Vertical writing on text layers? #188

Open
realteishiyou opened this issue Jul 21, 2024 · 3 comments
Open

Does ag-psd support Vertical writing on text layers? #188

realteishiyou opened this issue Jul 21, 2024 · 3 comments
Assignees

Comments

@realteishiyou
Copy link

No description provided.

@Agamnentzar Agamnentzar self-assigned this Jul 21, 2024
@Agamnentzar
Copy link
Owner

Unfortunately information about vertically aligned text is stored in a section that's not documented anywhere and I still wasn't able to fully decode it.

@Smirow
Copy link

Smirow commented Dec 9, 2024

@Agamnentzar I'll be happy to help, but I'm not sure which section I should look at. I don't see any additional fields in TySh. Txt2?

Do you have an example were it produce a broken file?

@Agamnentzar
Copy link
Owner

The problem is with interpreting 2nd EngineData section, the incomplete handling for it can be found here: https://github.com/Agamnentzar/ag-psd/blob/master/src/engineData2.ts

Example of the section can be found here: https://github.com/Agamnentzar/ag-psd/blob/master/test/engineData2.json

Here's the code that you can uncomment to read that data and print it out for any file: https://github.com/Agamnentzar/ag-psd/blob/master/src/additionalInfo.ts#L4665

The problem with this is that the keys in engineData2 structure are numbers and there's no information what number relates to what key, so there's a lot of guessing and trial and error involved.

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

No branches or pull requests

3 participants