Benedikt Stebner
005907a93b
More hit testing fixes for embedded content runs
4 years ago
Benedikt Stebner
3e6bc0b48d
Some more hit testing fixes
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
1c7ec4e538
Fix GetDistanceFromCharacterHit
4 years ago
Benedikt Stebner
301dbf2635
Fix embedded run Baseline handling
4 years ago
Benedikt Stebner
59d8f86509
Better WPF compat
Disable run sort
4 years ago
Benedikt Stebner
0edd67157e
Try to fix line height measurement
4 years ago
Benedikt Stebner
e7e7a95e5d
Try to fix GetDistanceFromCharacterHit for drawable runs
4 years ago
Benedikt Stebner
55d28216a7
Use ForgroundProperty directly where possible
4 years ago
Benedikt Stebner
5d43a1e664
Try to fix hit testing for embedded runs
4 years ago
Benedikt Stebner
9250d93407
Implement embedded runs
Improve text edit navigation
Implement IncrementalTabWidth
4 years ago
Dariusz Komosinski
1273448981
API changes and test fixes.
4 years ago
Dariusz Komosinski
df7fffc7c9
Allow for passing flow direction when collapsing lines.
4 years ago
Dariusz Komosinski
6bcf9c2973
Refactor text trimming and implement prefix trimming.
4 years ago
Benedikt Stebner
bfae67dbdb
Fix text edit shortcuts
Fix caret rendering at line ends
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
Benedikt Stebner
27c7a5c724
Fix issues mentioned during review
4 years ago
Benedikt Stebner
b815a22d5a
Port WPF's FormattedText to Avalonia and rework TextPresenter
4 years ago
Benedikt Stebner
42f552d803
Nullability for text related types
4 years ago
Steven Kirk
22a55fed27
Added a lot of nullable annotations to Avalonia.Visuals.
Except types related to text and one method in `DrawingContext` which I'm not sure what to do with.
4 years ago
Benedikt Schroeder
08a72e893c
Increase TextFormatter compatibility with WPF's version
5 years ago
Benedikt Schroeder
9eed4c974e
Make sure a GlyphRun's bounds are properly calculated
6 years ago
Benedikt Schroeder
40d74cf682
Fix baseline alignment of multiple runs
Make sure we always wrap at least one character
6 years ago
Andrey Kunchev
a19d327629
Revert "fix #4806 ensure at least one character is returned on the first text run measure"
This reverts commit c2d58f5a0b .
6 years ago
Andrey Kunchev
c2d58f5a0b
fix #4806 ensure at least one character is returned on the first text run measure
6 years ago
Benedikt Schroeder
c2fad766e5
Rework GlyphRun BaselineOrigin
6 years ago
Benedikt Schroeder
a2a0fba1c2
Ignore invisible characters
6 years ago
Benedikt Schroeder
7727722cb3
Make sure to always return a valid CharacterHit for next / previous CharacterHit
6 years ago
Benedikt Schroeder
4f7a701ab7
Reuse the shaped text runs as much as possible
6 years ago
Benedikt Schroeder
c3f01b696b
Make sure we always hit the outer sides at the start/end
6 years ago
Benedikt Schroeder
c5edf9bc5d
Initial
6 years ago
Benedikt Schroeder
453222d8de
Fix some comments
6 years ago
Benedikt Schroeder
e87697f901
Allow combining TextTrimming and TextWrapping
6 years ago
Benedikt Schroeder
bc9926014f
Fix typeface fallback for embedded fonts
Fix text wrapping for multiple corner cases
6 years ago
Benedikt Schroeder
2a181d9acb
Introduce TextRunProperties
6 years ago