Leo Bottaro
9441362dcc
Add missing Blend Modes and expose BlendMode on Image Control ( #17903 )
* Add missing Bitmap Blend Modes supported by Skia
* Expose Blend Mode on Image Control
* Fix image render options "push" not being disposed
Fix image blendMode change not triggering a re-render
* Add Image Blend Tests
* Remove Modulate Blend mode
* Add Composition Blend Modes Tests
---------
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
2 years ago
Benedikt Stebner
d411bd2156
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
2 years ago
Benedikt Stebner
e55dfcd1a2
Fixes ShapedTextRun background rendering ( #16594 )
* Add failing test
* Fix ShapedTextRun background rendering
2 years ago
Benedikt Stebner
b94b011c94
[WIP]Fix overhang leading calculation for negative values ( #13672 )
* [macOS] Fix overhand leading calculation
* Adjust TextLineMetrics
* Update expected result
3 years ago
Benedikt Stebner
520d9d631a
Properly handle overhang with RTL FlowDirection ( #13631 )
3 years ago
Benedikt Stebner
da3d4ca5c2
Fix TextLayout.OverhandLeading calculation ( #13287 )
* Fix overhand leading calculation
* Fix test on Mac
* Fix tests
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
Nikita Tsukanov
95b6343f8f
Respect AdornerLayer.IsClipEnabled
4 years ago
Benedikt Stebner
b0a2ae99e4
Fix default GlyphRun.BaselineOrigin
Add a unit test
4 years ago
Nikita Tsukanov
5a3d9f1574
Use parent clip rect of the adorned visual
4 years ago
Benedikt Stebner
173f5e1b6e
Update test file
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
5 years ago
Steven Kirk
ce60f607cf
Added failing tests for #6359 .
5 years ago
Wiesław Šoltés
5b9f06865e
Update expected test files
5 years ago
Andrey Kunchev
21fadbedd6
add tests for text issue:4866
6 years ago
Steven Kirk
253ff56895
Added a couple of Border CornerRadius render tests.
9 years ago
Steven Kirk
589b76e9cd
Moved render tests for each platform to their own directory.
The test .cs files stay in the `Avalonia.RenderTests` directory but the D2D and Skia render test .csprojs are moved to their own directory: include the test files by using a glob in the .csproj.
This avoids the hack we were having to do to get `BaseIntermediateOutputPath` to work - we no longer have this problem as now each .csproj has its own directory, it can use the default directory for intermediate files.
9 years ago
Steven Kirk
fb25645aed
Fixed expected skia output.
9 years ago
Steven Kirk
27ec199a3d
Added failing custom render tests.
Deferred rendering does not yet support geometry clipping or opacity masks from `Visual.Render`.
9 years ago
Steven Kirk
d6342e906a
Adjusted expected test output.
The output images were off-center.
9 years ago
Steven Kirk
7e1efb33e2
Added failing render test.
Deferred rendering does not yet support clipping in `Visual.Render`.
9 years ago
Steven Kirk
3ce2479489
Implemented deferred opacity drawing.
9 years ago
Nikita Tsukanov
d820dc1068
Added unit tests for skia backend
11 years ago