Benedikt Stebner
77e32f4bbe
Update to Unicode 14
4 years ago
Benedikt Stebner
6502fa1ef7
More TextAlignment fixes
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
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
Benedikt Stebner
050ac5fbba
Fix line metrics for empty lines that are processed by TextWrapping
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
6317a3ec18
Always produce a TextLine
4 years ago
Benedikt Stebner
768024a879
Implement InlineUIContainer
4 years ago
Benedikt Stebner
59d8f86509
Better WPF compat
Disable run sort
4 years ago
Benedikt Stebner
9250d93407
Implement embedded runs
Improve text edit navigation
Implement IncrementalTabWidth
4 years ago
Benedikt Stebner
d8937f90bc
Introduce CanShapeTogether and ShapeTogether
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
3fdfdd64d2
Fix font fallback
Fix TextPresenter measure
4 years ago
Benedikt Stebner
b815a22d5a
Port WPF's FormattedText to Avalonia and rework TextPresenter
4 years ago
ingen084
3908e4d71d
Fix text wrapping behavior ( #7397 )
* Allow one-character runs line breaks
* Remove unuseful ignored nullable
* Prevent redundant allocations
* Fix empty line handling
* Update TextFormatterImpl.cs
Co-authored-by: Benedikt Stebner <b.stebner@outlook.de>
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
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 Stebner
a55a6ec1ff
Fix RightToLeft TextWrapping
5 years ago
Benedikt Stebner
11e025fc68
Fix emergency breaks
5 years ago
Benedikt Schroeder
08a72e893c
Increase TextFormatter compatibility with WPF's version
5 years ago
Benedikt Schroeder
cb6785e700
Properly handle multiple line breaks
6 years ago
Benedikt Schroeder
b9ff1b23c3
Make sure we don't crash when RTL text is wrapped
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
Andrey Kunchev
4a0f517ecc
Revert "possible fix for #4806 for text formatting with wrap"
This reverts commit 37c2d0afb9 .
6 years ago
Andrey Kunchev
37c2d0afb9
possible fix for #4806 for text formatting with wrap
6 years ago
Benedikt Schroeder
c2fad766e5
Rework GlyphRun BaselineOrigin
6 years ago
Benedikt Schroeder
4f7a701ab7
Reuse the shaped text runs as much as possible
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
4e53adb9d4
Fix MeasureText for empty glyph clusters
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