Benedikt Stebner
5c83e054d1
Fix TextBlock TextAlignment issues when a HorizontalAlignment is defined ( #17402 )
* Always measure TextBlock with infinite width
* Make sure the constraint is always fulfilled
* Add some tests
* Adjust tests because we no longer retain the TextLayout in the arrange pass
1 year ago
Nikita Tsukanov
2299d96f98
Enable VisualBrush to be used as Visual's OpacityMask ( #17072 )
* Enable VisualBrush to be used as Visual's OpacityMask
* Add missing test file
---------
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
2 years ago
Benedikt Stebner
e55dfcd1a2
Fixes ShapedTextRun background rendering ( #16594 )
* Add failing test
* Fix ShapedTextRun background rendering
2 years ago
Benedikt Stebner
544d5372e3
Fix TileBrush Source/DestinationRect handling ( #15289 )
* Fix TileBrush Source/DestinationRect handling
* Add unit test
* Add cross render tests
* Add missing test image
2 years ago
Benedikt Stebner
23b3a767dc
Rework tile brush calculation ( #15157 )
2 years ago
Benedikt Stebner
4f8f46cb5d
Fix TransformOrigin for brushes ( #15037 )
2 years ago
Benedikt Stebner
6eb9d7a17e
Fixes/drawing brush transform ( #14978 )
* Apply brush transform to SKPicture instead to the local matrix of the resulting SKShader
* Add unit test
Implement Direct2D1
2 years ago
Nikita Tsukanov
8329efddd3
Fixes relative brush mapping mode ( #14598 )
* Fixed relative mapping mode for brushes (skia only, pending radial)
* Implemented separate RadiusX/RadiusY with proper mapping modes for RadialGradientBrush
* tests for conic brush
* Added tests for geometry drawing
* Updated DrawingBrush test image since it now matches WPF
* Update obsolete property usage
* Fixed D2D, updated radial test with D2D results that actually match WPF ones
* Fixed RadiusX/Y for radial gradients with non-centered origin
* Updated obsolete property usage
* Code cleanup
* Typo
* ApiDiff suppression
* Removed files for skipped test
* More info in obsoletion warning
* clarify
---------
Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
2 years ago
Steven Kirk
45e5d25ccf
Implemented Geometry.GetWidenedGeometry.
3 years ago
Benedikt Stebner
0b072f4d0d
Update test files
3 years ago
Benedikt Stebner
f153c626f8
Fix TextLineImpl.GetCharacterHitFromDistance for lines that include a TextEndOfLine run
Fix overhang handling to prevent clipped text for slanted glyphs
Fix TextBox selection issues
3 years ago
Benedikt Stebner
0442c3b337
Introduce advanced render options
3 years ago
Nikita Tsukanov
a9ef92bbeb
Implemented BeginFigure(isFilled: false)
3 years ago
Nikita Tsukanov
ae1fcfed51
Refactored DrawingContext and VisualBrush, added DrawingBrush ( #10419 )
Refactored DrawingContext and VisualBrush, added DrawingBrush
3 years ago
Nikita Tsukanov
95b6343f8f
Respect AdornerLayer.IsClipEnabled
3 years ago
Benedikt Stebner
b0a2ae99e4
Fix default GlyphRun.BaselineOrigin
Add a unit test
3 years ago
Nikita Tsukanov
6bdf0eacc7
Removed legacy renderers
3 years ago
Simon Cropp
209861d9d4
.
3 years ago
Nikita Tsukanov
5a3d9f1574
Use parent clip rect of the adorned visual
3 years ago
Benedikt Stebner
b295935286
Fix unpositioned GlyphRuns
3 years ago
Benedikt Stebner
71aba01b10
Implement FormattedText.BuildGeometry
4 years ago
Benedikt Stebner
e48c984443
Update tests
4 years ago
Benedikt Stebner
73c06b323e
Skia - Correctly translate current position when multiple glyphs are added to a path
4 years ago
Benedikt Stebner
7a533700d0
Implement GlyphRun.BuildGeometry
4 years ago
Steven Kirk
b2556d62f5
Fix some layout rounding issues.
Fixes for #8092 :
- Always round sizes up, not to the nearest pixel, thereby ensuring that `DesiredSize`s don't get rounded down where possible.
- Apply rounding to `Padding` and `BorderThickness` in measure pass as well as arrange pass, to ensure that `DesiredSize` takes this rounding into account.
4 years ago
Benedikt Stebner
bdadb6a351
Fix GetTextBounds for mixed runs
4 years ago
Benedikt Stebner
1db3296611
Fix TextBlock/TextPresenter measure/arrange
Fix TextTrimming for small width
Fix text splitting
Fix text editing shortcuts
4 years ago
Thehx
36d6222c75
Fixed and exposed PreciseArcTo for ellipses with extreme width:height ratios
4 years ago
Steven Kirk
f8eb073dd7
Added missing D2D expected images.
4 years ago
Steven Kirk
79f601886e
Added tests for transforms on CombinedGeometry children.
5 years ago
Steven Kirk
6e0a911a3a
Add test for transforms on GeometryGroup children.
5 years ago
Steven Kirk
f66bdefaf6
Simplified GeometryGroup tests,
5 years ago
Steven Kirk
4dbf646a73
Implement CombinedGeometry.
5 years ago
Steven Kirk
89cb076778
Implement GeometryGroup.
5 years ago
Steven Kirk
f6fce366cd
Added failing tests for TextLayout when used with a transform.
5 years ago
Steven Kirk
82754cb163
Fixed gradient brush target rectangles.
When drawn via the `DrawingContext` gradient brushes were not taking the origin of the target rect into account, only the size.
Fixes #5947 .
5 years ago
Steven Kirk
7d608a33ee
Implemented ImageDrawing.
5 years ago
Benedikt Schroeder
08a72e893c
Increase TextFormatter compatibility with WPF's version
5 years ago
Andrey Kunchev
21fadbedd6
add tests for text issue:4866
6 years ago
oliver.holliday@lontra.co.uk
8bb8f3c79f
Add Skia support for Conic Gradients. Add a place holder implementation for Direct2D using SolidColorBrushImpl.
6 years ago
oliver.holliday@lontra.co.uk
4f671b606b
Fix stop-offsets being relative to the wrong point after reversal. Copy arrays manually instead of using Linq to resolve PR comment.
6 years ago
oliver.holliday@lontra.co.uk
0d9905c051
Add expected test files
6 years ago
Steven Kirk
ba9e3e7641
Updated expected render test output.
6 years ago
Steven Kirk
bd0b894271
Fix UseLayoutRounding calculations.
Ported `RoundLayoutSize` and `RoundLayoutValue` from WPF and use these to calculated layout rounding.
Fixes #3467 .
6 years ago
Benedikt Schroeder
5824d77d0f
Fix VisualBrush tests
6 years ago
Benedikt Schroeder
4413de463e
Remove unsupported line caps
7 years ago
Dariusz Komosinski
6727bbe3df
Fix Skia rendering hairline width strokes when Pen thickness is 0.
7 years ago
Steven Kirk
41f201bec8
Fix grip visualbrush tests.
7 years ago
Dan Walmsley
53638845a6
Add more visualbrush tests.
7 years ago
Steven Kirk
eecd3555f9
Fix DPI in ImageBrushImpl.
And add expected output for tests. D2D now passes, skia still renders incorrectly.
7 years ago