Benedikt Stebner
895d85aa89
Implement CharacterBufferReference and related classes
4 years ago
robloo
3fc6a51571
Remove Rect.Default
4 years ago
robloo
509ebddcc4
Standardize Default member in Rect
4 years ago
Benedikt Stebner
5a5080b1a5
Rework GlyphTypeface
4 years ago
Benedikt Stebner
678620422d
More RTL hit testing fixes
4 years ago
Benedikt Stebner
0856cfaff9
Remove redundant comment
4 years ago
Benedikt
4f79ac8a1c
Fix precession errors
4 years ago
Benedikt Stebner
adc81678ca
Only add offsets for LeftToRight runs
4 years ago
Benedikt Stebner
d5084eaf75
Fix GetCharacterHitFromDistance
4 years ago
Benedikt Stebner
6fefe5c803
Align justified text to the natural start
4 years ago
Benedikt Stebner
e7be7cb88d
Fix that thing
4 years ago
Benedikt Stebner
81b0dce302
Fix RichTextBlock Inlines update handling
4 years ago
Benedikt Stebner
23b08b1f34
Attempt to fix consistent hit testing results
GetCharacterHitFromDistance and GetDistanceFromCharacterHit should match all the time
4 years ago
Benedikt Stebner
c921d1e097
Fix center alignment for RTL
4 years ago
Benedikt Stebner
eb627f393c
More fixes
4 years ago
Benedikt Stebner
7cbeb7ad3f
Rework TextLineImpl hit testing
4 years ago
Benedikt Stebner
6ab5774b80
Introduce TextLine.Justify for custom justification
4 years ago
Benedikt Stebner
d26a989406
Add more alignment options
4 years ago
Benedikt Stebner
a794d1765a
Initial implementation of TextAlignment.Justify
4 years ago
Benedikt Stebner
006aef2388
Rework hit testing to not rely on cluster values and instead use the currently covered TextSourceLength
4 years ago
Benedikt Stebner
17b9f246f3
Text hit testing fixes
4 years ago
Benedikt Stebner
b5391f9419
Fix GetTextBounds for some Bidi scenarios
4 years ago
Benedikt Stebner
bdadb6a351
Fix GetTextBounds for mixed runs
4 years ago
Benedikt Stebner
69f9e017f3
Fix text selection
Fix empty line RTL inital caret position
4 years ago
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