-
Notifications
You must be signed in to change notification settings - Fork 555
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] x86 fonts are corrupted #3122
Comments
Are you using CPU or GPU rendering? Can you attach a repro sample with the code and the font? This issue does not enough information to start testing. |
Failed with GL and without GL skiaerror.mp4Steps to reproduce: Use the x86 profile. Description:
Issue: |
I am encountering this same issue when using Mapsui targeting SkiaSharp 3.116.0 or greater. When targeting the x86 platform, all text within the map moves to the top of the control. |
We have the same problem building an app with Mapsui.Wpf 5.0.0-beta.7. The bug only shows using x86 and only on two of three machines. So, not a very visible problem. But since we release to many users that are on x86 this is a blocking issue for us. This is how the app starts: This is what happens after panning for five seconds: @mattleibow If you have any pointers on where to look in the source code I could try to investigate it. |
I did some more research.
So, it seems this DrawText (and another one using SKPaint.TextAlign) should be made obsolete just like two other DrawText methods. There is a suppression of the warning, which suggests it was not made obsolete for a reason. Whichever is the case, for the SkiaSharp users perspective the solution is to use another overload. This what I changed in the WinForms sample code: // Don't use this:
// e.Surface.Canvas.DrawText("Hallo from skia !", 100, 100, font, p);
// Use this instead:
e.Surface.Canvas.DrawText("Hallo from skia !", 100, 120, SKTextAlign.Left, font, p); |
Description
After update to 3.116.1 My application works perfectly in Any CPU and x64 profile, but rendering fonts crashes after few seconst in x86 profile. Older nuget version worked perfectly.
Code
The best way to share code for larger projects is a link to a GitHub repository: https://github.com/user/repo/tree/bug-123
But, you can also share a short block of code here:
// some C# code here
You can also share some XAML:
<!-- xaml code here -->
Expected Behavior
No response
Actual Behavior
No response
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
No response
Devices
No response
Relevant Screenshots
Relevant Log Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: