Browse Source

Merge pull request #10522 from AvaloniaUI/feature/skia-beginfigure-isfilled

Use proper baseline origin
pull/10530/head
Nikita Tsukanov 4 years ago
committed by GitHub
parent
commit
f4c5490300
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Avalonia.Base/Rendering/SceneGraph/GlyphRunNode.cs

2
src/Avalonia.Base/Rendering/SceneGraph/GlyphRunNode.cs

@ -21,7 +21,7 @@ namespace Avalonia.Rendering.SceneGraph
Matrix transform,
IImmutableBrush foreground,
IRef<IGlyphRunImpl> glyphRun)
: base(new Rect(glyphRun.Item.Size), transform, foreground)
: base(new Rect(glyphRun.Item.BaselineOrigin, glyphRun.Item.Size), transform, foreground)
{
GlyphRun = glyphRun.Clone();
}

Loading…
Cancel
Save