Skip to content

Commit

Permalink
Always use the matched typeface's weight, style and stretch (#16489)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gillibald authored Jul 29, 2024
1 parent 0f4ed21 commit 0b9fac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Skia/Avalonia.Skia/FontManagerImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public bool TryMatchCharacter(int codepoint, FontStyle fontStyle,

if (skTypeface != null)
{
fontKey = new Typeface(skTypeface.FamilyName, fontStyle, fontWeight, fontStretch);
fontKey = new Typeface(skTypeface.FamilyName, (FontStyle)skTypeface.FontStyle.Slant, (FontWeight)skTypeface.FontStyle.Weight, (FontStretch)skTypeface.FontStyle.Width);

return true;
}
Expand Down

0 comments on commit 0b9fac7

Please sign in to comment.