Benedikt Stebner
a056f0b654
Second attempt to fix text measurements with scaling
4 years ago
Benedikt Stebner
2425cbf7aa
Use RenderScaling in the ArrangeOverride
4 years ago
Benedikt Stebner
8772a46bba
Fix scaled text measurements
4 years ago
Benedikt Stebner
2902e3d24a
Rework Inlines invalidation
4 years ago
Steven Kirk
f8706278a8
Make OnPropertyChanged non-generic.
4 years ago
amwx
3792fb4447
Make other text properties Attached
4 years ago
Benedikt Stebner
768024a879
Implement InlineUIContainer
4 years ago
daniel mayost
ac18fb3597
same
4 years ago
daniel mayost
d8530e4baa
oops..
4 years ago
Benedikt Stebner
0de8c5dd52
Add FontStretch to property chane handler
4 years ago
Benedikt Stebner
b99e1b6b2c
Cleanup attached properties
4 years ago
Benedikt Stebner
9250d93407
Implement embedded runs
Improve text edit navigation
Implement IncrementalTabWidth
4 years ago
daniel mayost
61ffbcc687
naming more like wpf
4 years ago
daniel mayost
f5a21547b8
typo
4 years ago
daniel mayost
feec27e39f
some fixes
4 years ago
daniel mayost
0f5e78d70f
improve algorithm and typo fixes
4 years ago
daniel mayost
f6f8b1dec3
avoid re-calling the method
4 years ago
daniel mayost
d5fd84ebc0
continue working
4 years ago
Dariusz Komosinski
6bcf9c2973
Refactor text trimming and implement prefix trimming.
4 years ago
daniel mayost
3eddf5cac4
first work
4 years ago
Benedikt Stebner
bfae67dbdb
Fix text edit shortcuts
Fix caret rendering at line ends
4 years ago
Benedikt Stebner
0a3e5f5b91
Introduce Typeface.FontStretch and rework Skia typeface matching
4 years ago
Benedikt Stebner
95769ff007
Add TextBlock inlines support
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
Steven Kirk
77d059be22
Add nullable annotations to Avalonia.Controls.
4 years ago
Benedikt Stebner
b815a22d5a
Port WPF's FormattedText to Avalonia and rework TextPresenter
4 years ago
Steven Kirk
11c60b4294
Decouple automation peers from platform nodes.
Now peers are entirely unaware of the platform implementation.
5 years ago
Benedikt Schroeder
08a72e893c
Increase TextFormatter compatibility with WPF's version
5 years ago
Steven Kirk
8b642a9141
Implemented LabeledBy.
5 years ago
Steven Kirk
2a44d8b564
Initial implementation of UI automation.
Follows WPF/UWP API as closely as possible. Limited to win32 right now. Broken in many places.
5 years ago
Andrey Kunchev
dda966676c
fix Textblock text alignment with restricted height #4866
6 years ago
Benedikt Schroeder
c2fad766e5
Rework GlyphRun BaselineOrigin
6 years ago
José Pedro
7782261ec3
Added typed AvaloniaProperty<T>.Changed.
6 years ago
Benedikt Schroeder
04c781ca14
Make sure GlyphTypefaces are always cached
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
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
0ca4c77acc
Only calculate glyph advances for non fixed pitch fonts
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
2d78458f74
Add padding
6 years ago
Benedikt Schroeder
2d5258e118
Invalidate text layout when the available size changes
6 years ago
Benedikt Schroeder
de93e8e969
Full Unicode support for TextBlock
6 years ago
Benedikt Schroeder
1b0221e224
Reworked the font manager to better manage resoures and also work properly with the application lifetime
6 years ago
Benedikt Schroeder
83bfb8ec70
Initial implementation of a font manager
6 years ago
Dariusz Komosinski
961bade055
Do not allocate as much in TextBlock and TextPresenter constructors.
7 years ago
Steven Kirk
4a91003981
FormattedText.Measure() -> FormattedText.Bounds.
Changed `FormattedText.Measure` method to a `Bounds` property.
7 years ago
Steven Kirk
e7e57d0e91
Fix text rendering where TextAlignment != Left.
The renderer was using the wrong bounds for text where `TextAlignment != Left` as seen in #1625 . To fix this, change `FormattedTextImpl.Size` to `Bounds`, which returns a rect that takes into account the text alignment and similarly change `FormattedText.Measure` to return a `Rect` instead of a `Size.
Fixes #1625 .
7 years ago