Benedikt Stebner
03b8b2eb5e
Show ellipsis when MaxLines are reached
4 years ago
Benedikt Stebner
eb627f393c
More fixes
4 years ago
Benedikt Stebner
6ab5774b80
Introduce TextLine.Justify for custom justification
4 years ago
Benedikt Stebner
6502fa1ef7
More TextAlignment fixes
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
69f9e017f3
Fix text selection
Fix empty line RTL inital caret position
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
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
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
525af8f869
Fix selection rect merge
Fix ime rect update
4 years ago
Benedikt Stebner
3d992ce75b
Fix selection when the mouse is moved underneath the bounding box
4 years ago
Dariusz Komosinski
361bfeb1a0
Foreground can be nullable as well.
4 years ago
Dariusz Komosinski
af97568819
Text can be nullable.
4 years ago
Benedikt Stebner
74be5c807d
Merge selection rects if they overlap
4 years ago
Benedikt Stebner
79298e3375
Fix nit
4 years ago
Benedikt Stebner
4bac7fd953
Fix HitTestTextRange bidi
4 years ago
Benedikt Stebner
27c7a5c724
Fix issues mentioned during review
4 years ago
Benedikt Stebner
3f32f8e390
Fix GetLineIndexFromCharacterIndex
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
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
9bc9cd46fe
Include the TextLine's Start offset to the TextLayout's size calculation.
5 years ago
Benedikt Schroeder
08a72e893c
Increase TextFormatter compatibility with WPF's version
5 years ago
Benedikt Schroeder
888dd2b61b
Simplify PushPostTransform usage
6 years ago
Benedikt Schroeder
c2fad766e5
Rework GlyphRun BaselineOrigin
6 years ago
Benedikt Schroeder
a2a0fba1c2
Ignore invisible characters
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
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
Rustam Sayfutdinov
a2b5b3ad3b
Fix machine epsilon for double elsewhere
6 years ago
José Pedro
48177eddb7
Added MaxLines property to TextBlock.
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
f7aa466803
Include last line when constraint is surpassed
6 years ago
Benedikt Schroeder
55b4a1930b
Cleanup invalidation of measure and render
6 years ago
Benedikt Schroeder
6c948af49d
Fix TextWrapping
6 years ago
Benedikt Schroeder
38bd8b8010
Fix text line hit testing
Fix some xml comments
6 years ago
Benedikt Schroeder
de93e8e969
Full Unicode support for TextBlock
6 years ago