Skip to content

Section/Text: fix shape/drawing operations in text#7

Closed
PhosCity wants to merge 1 commit intoTypesettingTools:masterfrom
PhosCity:textsection-fixes
Closed

Section/Text: fix shape/drawing operations in text#7
PhosCity wants to merge 1 commit intoTypesettingTools:masterfrom
PhosCity:textsection-fixes

Conversation

@PhosCity
Copy link

@PhosCity PhosCity commented Dec 21, 2022

This fixes the convertToDrawing not working for lines with multiple linebreakers. The issues below were fixed after merging #9

The main issue was that c - Close b-spline was not understood by assf as valid shape data.

The other issue was that when rotating, the shape data from Yutils was being passed as raw and assf complained there was missing tagProps. Instead I passed the data as string.

Finally, convertToDrawing in Text section did not maintain original appearance. I've transformed the shape data so that the original shape is maintained. (Not accounting for \frx, \fax and \fay. Waiting for arch's Perspective module)

@PhosCity
Copy link
Author

I noticed that my previous commit did not consider lines with linebreakers. So I've added a new commit fixing that. The code became a bit messier due to that but lmk if there's a better way to achieve this if there is.

@PhosCity PhosCity marked this pull request as draft December 29, 2022 02:37
@PhosCity
Copy link
Author

I've changed this PR to draft because this has to be revised a little bit after #9 gets merged.

@PhosCity PhosCity marked this pull request as ready for review January 2, 2023 04:56
@PhosCity PhosCity closed this Apr 17, 2024
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

Successfully merging this pull request may close these issues.

1 participant