diff --git a/src/Avalonia.Base/Rendering/Composition/Server/DiagnosticTextRenderer.cs b/src/Avalonia.Base/Rendering/Composition/Server/DiagnosticTextRenderer.cs index 138b791019..b045bd8a53 100644 --- a/src/Avalonia.Base/Rendering/Composition/Server/DiagnosticTextRenderer.cs +++ b/src/Avalonia.Base/Rendering/Composition/Server/DiagnosticTextRenderer.cs @@ -67,7 +67,7 @@ namespace Avalonia.Rendering.Composition.Server { var effectiveChar = c is >= FirstChar and <= LastChar ? c : ' '; var run = _runs[effectiveChar - FirstChar]; - context.Transform = originalTransform * Matrix.CreateTranslation(offset, 0.0); + context.Transform = Matrix.CreateTranslation(offset, 0.0) * originalTransform; context.DrawGlyphRun(foreground, run.PlatformImpl.Item); offset += run.Bounds.Width; }