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

[BUG] SKPaint's IsAntiAlisasing is on on Android but off on iOS by default (Xamarin / SkiaSharp 2.88.8) #2845

Open
1 task done
janne-hmp opened this issue Apr 25, 2024 · 1 comment
Labels

Comments

@janne-hmp
Copy link

Description

IsAntiAlisasing seems to be off by default for iOS but on for Android. Workaround: Set IsAntiAliasing always on before using SKPaint.

Code

https://github.com/hyvanmielenpelit/GnollHack

Expected Behavior

IsAntiAliasing is on by default for both iOS and Android

Actual Behavior

IsAntiAliasing is off (or just does not work) by default for iOS and but on for Android

Version of SkiaSharp

2.88.3 (Current)

Last Known Good Version of SkiaSharp

2.80.x (Deprecated)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

iOS

Platform / Operating System Version

iOS 17.4.1

Devices

iPad 11,7

Relevant Screenshots

See #2218 This was an antialiasing problem on iOS.

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@janne-hmp
Copy link
Author

This is regarding text drawing. Also, there's interesting observation. If you switch IsAntialiasing on before DrawText and then switch off after the command, the text seems to be drawn without antialiasing at least on SKGLView. If you set it permanently on, the text is drawn with antialiasing.

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

No branches or pull requests

1 participant