Julien Lebosquain
ee748802b3
Enable nullability in various test projects ( #20374 )
* Enable nullability in RenderTests
* Enable nullability in LeakTests
* Enable nullability in Skia.UnitTests
* Enable nullability in Generators.Tests
* Enable nullability in DesignerSupport.Tests
* Enable nullability in Build.Tasks.UnitTests
9 months ago
Jan Kučera
21b5812746
Text API sample app ( #19455 )
* xml documentatation for paragraph properties
* TextTestApp
* text test files renamed parameter
* glyph ink bounds
* shaped buffer make selected row visible
* text test app force light theme
* text test app distinguish start and end distance marks
---------
Co-authored-by: Jan Kučera <miloush@users.noreply.github.com>
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
Co-authored-by: Julien Lebosquain <julien@lebosquain.net>
1 year ago
Alexandre Mutel
46d4735868
Fix issue with OverhangLeading ( #18438 )
* Fix issue with MinTextWidth (Fixes #18372 )
* Make sure that MeasureOverride for TextPresenter and TextBlock are using same textWidth
* Revert #16601 that is introducing an invalid calculation for the OverhangLeading
Add tests for OverhangLeading and OverhangTrailing
* Revert MinTextWidth
* Fix tests to not rely on fixed values
* Fix remaining issues
* Fix comment in Direct2D1 GlyphRunImpl.cs
* Fix Direct2D1 rendering
* Fix gold images
* Restore TextLineImpl
* Update gold image
* Restore Math.Max on OverhangLeading and Trailing
* Adopt similar behavior to WPF: don't use OverhangLeading/Trailing for measuring and remove clip by default.
But it requires further support with NeedsClipBounds
* Remove MinTextWidth
Keep ClipToBounds=true default for TextBlock
* Revert change
---------
Co-authored-by: Benedikt Stebner <Gillibald@users.noreply.github.com>
1 year ago
Benedikt Stebner
4ae0184726
Fix TextWrapping in combination with TextEndOfLine runs ( #18523 )
1 year ago
Alexandre Mutel
72caa3ccba
Fix TextLayout.Width calculation ( #18305 ) ( #18310 )
* Fix TextLayout.Width calculation (#18305 )
* Use WinSymbols3.ttf
2 years ago
Benedikt Stebner
376a84182e
Fix BaselineAlignment ( #16276 )
* Implement remaining BaselineAlignment variants
* Adjust BaselineOffset calculation
* Draw all shaped runs at the baseline
* Random change please revert
* Revert change
2 years ago
Benedikt Stebner
eb882213be
Make sure glyphInfos usage is always in within bounds ( #16120 )
2 years ago
Benedikt Stebner
cc507ba359
Handle extra lines during hit testing
3 years ago
Benedikt Stebner
f153c626f8
Fix TextLineImpl.GetCharacterHitFromDistance for lines that include a TextEndOfLine run
Fix overhang handling to prevent clipped text for slanted glyphs
Fix TextBox selection issues
3 years ago
Max Katz
4aa6035ec3
Reuse text and geometry related headless mocks in Avalonia unit tests and benchmarks
3 years ago
Benedikt Stebner
f307b7364a
Fix TextLineImp GetTextBounds
Fix Tab character handling
4 years ago
Benedikt Stebner
9016933085
Fix some unit tests
4 years ago
Benedikt Stebner
edbfd96b2d
Simply ShapedBuffer GlyphInfos access
4 years ago
Benedikt Stebner
42f8c58aef
Update teste for the new typeface
4 years ago
Benedikt Stebner
14fba2e53a
Rework HitTestTextRange
4 years ago
Julien Lebosquain
2f429062a1
Perf: improved GraphemeEnumerator by avoiding double codepoint iteration
4 years ago
Julien Lebosquain
4144be11fe
Pass GlyphInfo directly to GlyphRun
4 years ago
Julien Lebosquain
dec8c1c586
Used Memory/Span instead of CharacterBufferReference/Range
+ GlyphRun uses ReadOnlyMemory for characters
4 years ago
Sergey Mikolaitis
84206e93dd
[Text] Optimize grapheme and add performance benchmark
4 years ago
Sergey Mikolaitis
5fef8af151
[Text] [Rename] ShapeableTextCharacters to UnshapedTextRun and ShapedTextCharacters to ShapedTextRun
4 years ago
Benedikt Stebner
895d85aa89
Implement CharacterBufferReference and related classes
4 years ago
Benedikt Stebner
5a5080b1a5
Rework GlyphTypeface
4 years ago
Benedikt Stebner
3e127d70a1
Fix RTL hit testing after bidi mirror changes
4 years ago
Benedikt
4f79ac8a1c
Fix precession errors
4 years ago
Benedikt Stebner
bf9a0d8656
Use a different arabic font for tests
4 years ago
Benedikt Stebner
c94120c065
Try to fix tests on mac
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
6a882d97dc
Fix unit tests on mac
4 years ago
Benedikt Stebner
eb627f393c
More fixes
4 years ago
Benedikt Stebner
7cbeb7ad3f
Rework TextLineImpl hit testing
4 years ago
Benedikt Stebner
59d8f86509
Better WPF compat
Disable run sort
5 years ago
Benedikt Stebner
1db3296611
Fix TextBlock/TextPresenter measure/arrange
Fix TextTrimming for small width
Fix text splitting
Fix text editing shortcuts
5 years ago
Benedikt Stebner
b308cdee71
Fix HitTestRange bidi test
5 years ago
Benedikt Stebner
27c7a5c724
Fix issues mentioned during review
5 years ago
Benedikt Stebner
b815a22d5a
Port WPF's FormattedText to Avalonia and rework TextPresenter
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
Andrey Kunchev
14b2618798
enable back the test for text Wrapping
6 years ago
Andrey Kunchev
07b48075ce
add failing test for #4806 (skip it for now as it's deadlock)
6 years ago
Benedikt Schroeder
c2fad766e5
Rework GlyphRun BaselineOrigin
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
José Pedro
50985a62d2
Changed test cases as requested.
6 years ago
José Pedro
48177eddb7
Added MaxLines property to TextBlock.
6 years ago
Benedikt Schroeder
6b8f867006
Initialize the GlyphRun on render
6 years ago
Benedikt Schroeder
0b1b3914b3
More text rendering improvements
6 years ago
Benedikt Schroeder
95f78bbd3f
Include last line when constraint is surpassed
7 years ago
Benedikt Schroeder
f7aa466803
Include last line when constraint is surpassed
7 years ago