Skip to content

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

Open
@meridaio

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions