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] 2.88.0 and 2.80.4 draw fonts with substantially less resolution than 2.80.3. #2218

Closed
janne-hmp opened this issue Aug 15, 2022 · 1 comment

Comments

@janne-hmp
Copy link

Description

The fonts in SkiaSharp 2.88.0 and 2.80.4 are drawn with substantially less resolution than in 2.80.3.

Code

See the screenshots.

Expected Behavior

Fonts are drawn in high resolution similar to 2.80.3.

Actual Behavior

Fonts are drawn with lower resolution than in 2.80.3

Basic Information

  • Version with issue: 2.88.0 and 2.80.4
  • Last known good version: 2.80.3
  • IDE: Visual Studio 2022 17.3.0
  • Platform Target Frameworks:
    • Android: 12 (target 11.0)
    • iOS: 15.6 (target 8.1)
  • Target Devices:
    • Samsung SM-P615
    • Apple iPad 11,7

Screenshots

Screenshots using 2.88.0, 2.80.4 and 2.80.3. Screenshots with 2.88.0 and 2.80.4 are identical, while 2.80.3 has better font resolution.

Screenshot_20220815-2-80-3
Character selection in 2.80.3 with fonts drawn in high resolution

Screenshot_20220815-2-80-4
Character selection in 2.80.4 with fonts drawn in low resolution

Screenshot_20220815-2-88-0
Character selection in 2.88.0 with fonts drawn in low resolution

Reproduction Link
https://github.com/hyvanmielenpelit/GnollHack

@janne-hmp
Copy link
Author

Solved by setting SKPaint's IsAntiAliasing = true on 2.88.8 / Xamarin and SKFont's Edging to AntiAlias on 3.00.x / .NET MAUI. Android seems to work in this way by default, but it is probably good form to set the properties accordingly on Android, too.

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