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

Fix set the Font to Microsoft.Maui.Graphics.Skia #9124

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

lindexi
Copy link
Member

@lindexi lindexi commented Aug 2, 2022

Description of Change

When the _font is null that it will never set the value to the _font field.

It always return false when the _font is null:

_font != value && _font != null

This bug is a cause of dotnet/Microsoft.Maui.Graphics#473 . We can not set any Font name to SkiaCanvas and the default Font do not support Chinese text.

The origin PR: dotnet/Microsoft.Maui.Graphics#474

Issues Fixed

Fixes #dotnet/Microsoft.Maui.Graphics#473

@rmarinho
Copy link
Member

rmarinho commented Aug 2, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@Eilon Eilon added the area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing label Aug 2, 2022
@jfversluis jfversluis merged commit 48ff70f into dotnet:main Aug 4, 2022
@lindexi
Copy link
Member Author

lindexi commented Aug 4, 2022

Thank you @matleibow and @jfversluis

@jfversluis
Copy link
Member

Thank you so much for your contribution @lindexi !

@F-Unction
Copy link

But don't forget to review the same pr in SkiaSharp.@mattleibow

mono/SkiaSharp#2146

@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2023
@lindexi lindexi deleted the t/lindexi/SkiaCanvasState branch September 24, 2024 06:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fixed-in-7.0.0-rc.1.6683
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants