Browse Source

Use proper baseline origin

pull/10522/head
Nikita Tsukanov 3 years ago
parent
commit
a4b3d30aff
  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