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

Text Rotation/Orientation #150

Open
wawaclem opened this issue Jul 29, 2024 · 1 comment
Open

Text Rotation/Orientation #150

wawaclem opened this issue Jul 29, 2024 · 1 comment

Comments

@wawaclem
Copy link

Hello,

Is support for text orientation planned ?

Many thanks

@wawaclem
Copy link
Author

wawaclem commented Aug 28, 2024

Hi,

I modified your lib as follows for my needs

After Line 84 : const A_WRAPTEXT = 64;
Add Line : const A_ROTATION_90 = 128;

After Lines 486 to 487 :
if ($xf[1] & self::A_WRAPTEXT) { $align .= ' wrapText="1"'; }
Add Lines :
if ($xf[1] & self::A_ROTATION_90) { $align .= ' textRotation="90"'; }

After Lines 798 to 800 :
if (strpos($v, '<wraptext>') !== false) { $A += self::A_WRAPTEXT; }
Add Lines :
if (strpos($v, '<rotation90>') !== false) { $A += self::A_ROTATION_90; }

So I just have to add the rotation90 tag and it works.

Br,

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

1 participant