Giuseppe Lippolis
89c0ef5637
refactoring: removed some unused namespace
4 years ago
Benedikt Stebner
71aba01b10
Implement FormattedText.BuildGeometry
4 years ago
Benedikt Stebner
7a533700d0
Implement GlyphRun.BuildGeometry
4 years ago
Steven Kirk
fb0da85ad3
Merge core libraries. ( #5831 )
* Merge core libraries.
Everything below `Avalonia.Controls` into `Avalonia.Base`.
* Move new files to correct place.
* Removed unused dirs/projects,
* Removed outdated references from theme assemblies.
* Merge unit tests to match new assembly layout.
* Fixup test namespaces.
* Make directory match namespace.
* Move files to match namespace.
* Move files to match namespace.
* Fix up incorrect namespace.
`Avalonia.Visuals.Media.Imaging` -> `Avalonia.Media.Imaging`.
* Fix resource URL.
* Removed outdated dependencies.
* Added missing project reference.
* Update test namespaces.
* Fix merge error.
* Fix merge errors.
* Fix bad merge in WindowsInteropTest.csproj.
* Fix up merge errors in csprojs.
* Remove merged tests from nuke.
* Fix up namespace.
* Fix compile error.
* Fix failing tests.
Now that more unit tests are present in Avalonia.Base.UnitTests, general `AvaloniaObject` properties are getting registered. Ignore those.
Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
4 years ago
Benedikt Stebner
b815a22d5a
Port WPF's FormattedText to Avalonia and rework TextPresenter
5 years ago
Steven Kirk
4dbf646a73
Implement CombinedGeometry.
5 years ago
Steven Kirk
89cb076778
Implement GeometryGroup.
5 years ago
Benedikt Schroeder
08a72e893c
Increase TextFormatter compatibility with WPF's version
5 years ago
Dan Walmsley
a4ebe5dbb5
add direct2d implementation.
5 years ago
Benedikt Schroeder
51437baf73
Properly scale fixed pitch fonts
6 years ago
Benedikt Schroeder
73ab16e68c
Fix Direct2D1 text rendering
6 years ago
Dariusz Komosinski
aff78fa662
Add default alpha and pixel formats to render interfaces.
6 years ago
Dariusz Komosinski
972587130b
Support passing alpha format to created bitmaps.
6 years ago
Dan Walmsley
a856b210fb
dont implement CreateScaleBitmap on Direct2d.
6 years ago
Dan Walmsley
6bb873d5bb
implement bitmap resize apis for direct2d
6 years ago
Dan Walmsley
ac65b4e717
Add documentation.
6 years ago
Dan Walmsley
0889318c57
Add createscaled bitmap
6 years ago
Dan Walmsley
663b91a8bf
Implement ability to decode a bitmap at a specified width or height.
6 years ago
Dan Walmsley
3995b8abb9
use default arguments for bitmap decoder options in platform backends.
6 years ago
Dan Walmsley
ba75735848
decode bitmaps at a specified size.
6 years ago
Nikita Tsukanov
d0b041095d
Inset box-shadow
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.
7 years ago
Benedikt Schroeder
de93e8e969
Full Unicode support for TextBlock
7 years ago
Benedikt Schroeder
ab5e062deb
Add GlyphRun support
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
9d105c7dbb
Introduce a static FontManager that uses a platform implementation under the hood.
7 years ago
Benedikt Schroeder
83bfb8ec70
Initial implementation of a font manager
7 years ago
Dariusz Komosinski
1b869ff27b
Get rid of not needed interfaces.
8 years ago
Dariusz Komosiński
8534769435
Platform geometry implementations for D2D and Skia.
8 years ago
Jeffrey Ye
2ed745d493
#2222 Get all fonts in the system
8 years ago
Steven Kirk
a0e8dca6e9
Use PixelSize for device-dependent sizes.
8 years ago
Benedikt Schroeder
e625f03c16
Use ID2D1Device instead of ID2D1Device1 to keep wi
8 years ago
Benedikt Schroeder
024e0da1da
Direct3DInterop fixes
8 years ago
Benedikt Schroeder
66bebd0c1b
Initial
8 years ago
Miha Markič
0a38876590
Spellchecks all projects except for Base, Controls, Samples and Testing
8 years ago
Benedikt Schroeder
5a5be9e767
Requested changes
8 years ago
Benedikt Schroeder
01444ccfee
FontFamily fallback
8 years ago
ahopper
e967a8eb72
rename WritableBitmap
9 years ago
Nikita Tsukanov
3e09457e10
[D2D1] Implement support for IFramebufferPlatformSurface
9 years ago
Steven Kirk
e7247a2c12
Added methods for creating D2D render layers.
Craetes a compatible render target depending on the type of `IRenderTargetBitmapImpl`.
9 years ago
Nikita Tsukanov
5125784af5
Missing file
9 years ago
Nikita Tsukanov
2f34c124e6
Added Direct2D-specific IExternalDirect2DRenderTargetSurface
9 years ago
Steven Kirk
3d76a5040c
Port Direct2D code from master.
9 years ago
Nikita Tsukanov
06aa7780fb
Moved Direct2D initialization away from static constructor
10 years ago
Steven Kirk
1b9d61416f
Ported ImmediateRenderer from scenegraph branch.
10 years ago
Steven Kirk
92331915b4
Enable SharpDX EnableReleaseOnFinalizer.
We need to enable to avoid memory leaks this as we're not doing cleanup
of SharpDX objects ourselves.
10 years ago
Steven Kirk
e6cb529878
Ported immutable media impls from scenegraph.
The deferred renderer requires immutable objects for drawing as it
renders on a separate thread.
10 years ago
Steven Kirk
376535b198
Make IFormattedTextImpl immutable.
Previously `IFormattedTextImpl` had `SetForegroundBrush` which set
mutable state. Make `FormattedText` fully mutable (before it was kinda
mutable, kinda immutable) and create immutable `IFormattedTextImpl`s on
demand.
10 years ago
Steven Kirk
faf150c6d7
Make windowing subsystem select the renderer.
Direct2D selects `DeferredRenderer`, the GTK backends select
`ImmediateRenderer` for now.
10 years ago
Steven Kirk
289fa47304
Reworked immediate renderer.
It now doesn't use the render loop, but instead invalidates the window
and reacts to paint events.
10 years ago