mono / SkiaSharp

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
MIT License
4.14k stars 522 forks source link

[BUG] Drawing Chinese using SkiaSharp in Blazor WASM is very blurry #2797

Open 18779758522 opened 2 months ago

18779758522 commented 2 months ago

Description

I have enabled Antialias, but Blazor WASM DrawText in Chinese comes out very blurry, Windows Forms DrawText Chinese is very clear and sharp.

What is the method to draw Chinese clearly on Blazor WASM SkiaSharp? The following figure shows the test cases: 14641710295992_ pic

Code

https://github.com/18779758522/SkiaSharpBlazorWebDemo

Expected Behavior

I tried upgrading to the latest version and it worked the same way.

Actual Behavior

No response

Version of SkiaSharp

2.88.4-preview (Preview)

Last Known Good Version of SkiaSharp

Other (Please indicate in the description)

IDE / Editor

Visual Studio Code (Windows)

Platform / Operating System

All

Platform / Operating System Version

Goole Chrome 122.0.6261.112

Devices

No response

Relevant Screenshots

No response

Relevant Log Output

No response

Code of Conduct