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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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(); |
|
|
|
} |
|
|
|
|