From a4b3d30affffcc32d4692aebdb84eb97cd7b52d2 Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Wed, 1 Mar 2023 20:42:27 +0600 Subject: [PATCH] Use proper baseline origin --- src/Avalonia.Base/Rendering/SceneGraph/GlyphRunNode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Base/Rendering/SceneGraph/GlyphRunNode.cs b/src/Avalonia.Base/Rendering/SceneGraph/GlyphRunNode.cs index 4d8759f545..4b09bc9280 100644 --- a/src/Avalonia.Base/Rendering/SceneGraph/GlyphRunNode.cs +++ b/src/Avalonia.Base/Rendering/SceneGraph/GlyphRunNode.cs @@ -21,7 +21,7 @@ namespace Avalonia.Rendering.SceneGraph Matrix transform, IImmutableBrush foreground, IRef glyphRun) - : base(new Rect(glyphRun.Item.Size), transform, foreground) + : base(new Rect(glyphRun.Item.BaselineOrigin, glyphRun.Item.Size), transform, foreground) { GlyphRun = glyphRun.Clone(); }