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

[Mac] use proper text alignment on arm64 #2438

Closed
wants to merge 1 commit into from

Conversation

Miepee
Copy link
Contributor

@Miepee Miepee commented Mar 6, 2023

TextAlignment Right and Center are switched up on Arm64 Macos. So this PR fixes this by giving the switched up version in the ToEto/ToNS functions if the current running system is Arm.

Fixes #2250 (don't have a mac device currently, so didn't actually test).

TextAlignment Right and Center are switched up on Arm64 Macos.
@cwensley
Copy link
Member

cwensley commented Mar 8, 2023

Thanks for the fix @Miepee!

I'm not sure if the net7.0-macos workload already deals with this so that needs to be looked into first. If it does, the fix should probably go into MonoMac instead of in Eto.

@Miepee
Copy link
Contributor Author

Miepee commented Mar 8, 2023

Does the net7.0 workload use xamarin? if yes, it seems to have been merged about a year ago: xamarin/xamarin-macios#12111

@cwensley
Copy link
Member

cwensley commented Mar 8, 2023

Yes they are the same. So we should do a similar fix for the MonoMac submodule instead.

@Miepee Miepee marked this pull request as draft March 8, 2023 22:21
@Miepee
Copy link
Contributor Author

Miepee commented Mar 8, 2023

Gotcha, will mark as ready to review then when I moved the fix to monomac.

cwensley added a commit to cwensley/Eto that referenced this pull request Mar 24, 2023
@Miepee Miepee deleted the armTextAlign branch March 24, 2023 09:57
@Miepee
Copy link
Contributor Author

Miepee commented Mar 24, 2023

Guess i was too slow, sorry for that

@cwensley
Copy link
Member

No worries @Miepee, I hope you didn't put too much work into it. I needed it for one of my projects so I thought I'd take a crack at it.

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.

Text alignment is incorrect on arm64 macos
2 participants