Browse Source

Fix skia text rendering.

We were seeing blurry text when switching pages in the ControlCatalog
using Skia. This fixes that, though I'm not entirely sure how. Thanks to
@danwalmsley for the soltuion!
scenegraph-after-breakage
Steven Kirk 10 years ago
parent
commit
dbeb4243d5
  1. 1
      src/Skia/Avalonia.Skia/FormattedTextImpl.cs

1
src/Skia/Avalonia.Skia/FormattedTextImpl.cs

@ -36,6 +36,7 @@ namespace Avalonia.Skia
_paint.Typeface = typeface;
_paint.TextSize = (float)fontSize;
_paint.TextAlign = textAlignment.ToSKTextAlign();
_paint.XferMode = SKXferMode.Src;
_wrapping = wrapping;
_constraint = constraint;

Loading…
Cancel
Save