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.
6 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.
6 years ago
Benedikt Schroeder
0ca4c77acc
Only calculate glyph advances for non fixed pitch fonts
6 years ago
Benedikt Schroeder
de93e8e969
Full Unicode support for TextBlock
6 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.
6 years ago
Benedikt Schroeder
1b0221e224
Reworked the font manager to better manage resoures and also work properly with the application lifetime
6 years ago
Benedikt Schroeder
527d8376d7
Combine draw and fill rectangle drawing operation
6 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.
6 years ago
Dan Walmsley
620be6f105
add failing unit test for empty textbox hit test.
6 years ago
Benedikt Schroeder
83bfb8ec70
Initial implementation of a font manager
6 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
7 years ago
Dariusz Komosinski
6727bbe3df
Fix Skia rendering hairline width strokes when Pen thickness is 0.
7 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 .
7 years ago
Nikita Tsukanov
6d5d26b36c
Exclude Wrapping_NoWrap from Linux test run
7 years ago
Nikita Tsukanov
ea7dc760cc
Updated SkiaSharp to 1.68.0
7 years ago
Dan Walmsley
53638845a6
Add more visualbrush tests.
7 years ago
Steven Kirk
f1c2c72400
Added failing tests for #1614 .
7 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
Nelson Carrillo
88bfdf87ea
Skia backend cleanup.
8 years ago
Jeremy Koritzinsky
18f436a2c3
Clean up unused code warnings and malformed doc comments.
8 years ago
Benedikt Schroeder
d5ace4db8d
tests fixed
8 years ago
Steven Kirk
253ff56895
Added a couple of Border CornerRadius render tests.
8 years ago
Benedikt Schroeder
27a666467c
Initial
8 years ago
ahopper
e967a8eb72
rename WritableBitmap
8 years ago
Steven Kirk
6133837600
Locate tests directory in code.
Rather than using a hard-coded path.
8 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.
8 years ago
Steven Kirk
7a60b790b0
Added failing test for #1341 .
8 years ago
Jeremy Koritzinsky
1c12cd4bd6
Fix x64 builds of Avaloina.Direct2D1. Refactor build scripts to reduce time and fix issues.
8 years ago
Jeremy Koritzinsky
f72577cf92
Clean up test scripts
8 years ago
Jeremy Koritzinsky
eb7c010462
Retarget .Net Framework projects to 4.7
Works around dotnet/standard#567 .
8 years ago
Steven Kirk
04c489daa5
Make Collection Properties get-only
Fixes #1302 .
8 years ago
Nikita Tsukanov
a4c9f1e400
Make ShapeLayoutTests use MockPlatformRenderInterface
9 years ago
sdoroff
7db5ae8db9
Added unit tests
9 years ago
Nikita Tsukanov
3e09457e10
[D2D1] Implement support for IFramebufferPlatformSurface
9 years ago
Nikita Tsukanov
bdbe95b9b1
Fixed DispatcherTimer's priorities
9 years ago
Nikita Tsukanov
3d3d4528f6
Burn, baby, BURN!
9 years ago
Nikita Tsukanov
b963d68668
Try to respect DispatcherPriority when possible
9 years ago
Jurjen Biewenga
e74a1be8e4
Added SVGPath test
9 years ago
Nikita Tsukanov
913149d093
Switched to .NET Standard 2.0
9 years ago