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] SKCanvas.DrawText no longer obeys SKPaint.IsAntialias property #3130

Open
1 task done
meridaio opened this issue Dec 27, 2024 · 0 comments
Open
1 task done

[BUG] SKCanvas.DrawText no longer obeys SKPaint.IsAntialias property #3130

meridaio opened this issue Dec 27, 2024 · 0 comments
Labels

Comments

@meridaio
Copy link

Description

The SKCanvas.DrawText method no longer obeys the SKPaint.IsAntialias property of the provided SKPaint object. Prior to 3.116.0, setting this property to false produces the following image:
working-no-antialias
and setting it to true produces:
working-antialias

On versions 3.116.0 and 3.116.1, the image produced when IsAntialias is false now looks like this:
broken-no-antialias
and set to true:
broken-antialias

Code

Example here demonstrating broken and working versions: https://github.com/meridaio/SkiaSharpTextAntialiasing

Expected Behavior

Setting SKPaint.IsAntialias = false should disable antialiasing for the SKCanvas.DrawText method.

Actual Behavior

The SKPaint.IsAntialias property seems to have no effect on the SKCanvas.DrawText method

Version of SkiaSharp

3.116.0 (Current)

Last Known Good Version of SkiaSharp

2.88.9 (Previous)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Windows

Platform / Operating System Version

Windows 11

Devices

No response

Relevant Screenshots

No response

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: New
Development

No branches or pull requests

1 participant