Steven Kirk
ce60f607cf
Added failing tests for #6359 .
5 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
2a09574ba7
Revert "Fixed gradient brush target rectangles."
Reverts #6066 . Keeps the render tests to demonstrate that the WPF behavior can be reproduced by pushing a translation.
5 years ago
Steven Kirk
9718a77fa9
Skip TextLayout render tests on OSX.
They were failing due to slightly different text rendering on that platform.
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
Jumar Macato
4e180c88cd
remove old test
6 years ago
Jumar Macato
d2339a041d
try making a unit test
6 years ago
Giuseppe Lippolis
c98918bc2a
Update tests
6 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
38a6ea99ac
Add new tests for RadialGradient with GradientOffset handling. Fix implementation of Skia renderer to match Direct2d version.
6 years ago
Benedikt Schroeder
04c781ca14
Make sure GlyphTypefaces are always cached
6 years ago
Dariusz Komosinski
77ef0ea144
Fix test.
6 years ago
Benedikt Schroeder
bc9926014f
Fix typeface fallback for embedded fonts
Fix text wrapping for multiple corner cases
6 years ago
Benedikt Schroeder
5824d77d0f
Fix VisualBrush tests
6 years ago
Nikita Tsukanov
159cea5f4c
Broken mocks every-freaking-where
6 years ago
Steven Kirk
5397efc4f0
Remove some left-over copyright headers.
7 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
7 years ago
Benedikt Schroeder
0ca4c77acc
Only calculate glyph advances for non fixed pitch fonts
7 years ago
Benedikt Schroeder
de93e8e969
Full Unicode support for TextBlock
7 years ago
Steven Kirk
a8e75384b7
Added IImage interface.
`IImage` represents a base interface for raster and vector images. `IBitmap` now implements this interface and `DrawingContext` accepts this interface in `DrawImage`.
The interface defines a `Draw` method which introduces a level of indirection for drawing the image through the image itself.
Renamed `IDrawingContextImpl.DrawImage` to `DrawBitmap` as this only handles drawing bitmap images. `Bitmap` now calls this method directly on the platform implementation.
7 years ago
Benedikt Schroeder
1b0221e224
Reworked the font manager to better manage resoures and also work properly with the application lifetime
7 years ago
Benedikt Schroeder
527d8376d7
Combine draw and fill rectangle drawing operation
7 years ago
Dan Walmsley
5b3e2320a8
remove unit tests, skia and direct2d behave differently and making them match is beyond the scope of this bug fix.
7 years ago
Dan Walmsley
620be6f105
add failing unit test for empty textbox hit test.
7 years ago
Benedikt Schroeder
83bfb8ec70
Initial implementation of a font manager
7 years ago
Steven Kirk
7cdaeac441
Make Rect.Deflate consistent with Rect.Inflate.
`Rect.Deflate` was halving the thickness passed into it whereas `Rect.Inflate` wasn't. Make both methods consistent and _not_ halve the thickness.
7 years ago
Benedikt Schroeder
4413de463e
Remove unsupported line caps
8 years ago
Dariusz Komosinski
6727bbe3df
Fix Skia rendering hairline width strokes when Pen thickness is 0.
8 years ago
Steven Kirk
e7e57d0e91
Fix text rendering where TextAlignment != Left.
The renderer was using the wrong bounds for text where `TextAlignment != Left` as seen in #1625 . To fix this, change `FormattedTextImpl.Size` to `Bounds`, which returns a rect that takes into account the text alignment and similarly change `FormattedText.Measure` to return a `Rect` instead of a `Size.
Fixes #1625 .
8 years ago
Nikita Tsukanov
6d5d26b36c
Exclude Wrapping_NoWrap from Linux test run
8 years ago
Nikita Tsukanov
ea7dc760cc
Updated SkiaSharp to 1.68.0
8 years ago
Dan Walmsley
53638845a6
Add more visualbrush tests.
8 years ago
Steven Kirk
f1c2c72400
Added failing tests for #1614 .
8 years ago
Jumar Macato
d4b82e5af7
Fix yet another visual test
8 years ago
Jumar Macato
cfa39c9d0d
fix wrongly placed fontfamily parameter
8 years ago
Jumar Macato
0094c4cf87
Fix unit test by specifying the font in the test image.
8 years ago
Steven Kirk
a0e8dca6e9
Use PixelSize for device-dependent sizes.
8 years ago
Steven Kirk
d531b36b96
Make brushes raise a Changed event.
When their visual representation changes.
8 years ago
Steven Kirk
d15e86c2a7
Pass correct node bounds to PushOpacityMask. ( #1870 )
* Pass correct node bounds.
Use node bounds not clip bounds for opacity mask rect.
Fixes #1118 .
* Use layout bounds for opacity mask.
And added a new render test to make sure that the render transform is applied to it.
* Fix bad XAML formatting.
8 years ago
Karnah
48dd3b94d1
Using transparent brush when image source is null
8 years ago
Karnah
d8615643dd
Fixed NullReferenceException for ImageBush with null Source
8 years ago