2019-08-03 18:02:45 +03:00
|
|
|
![Banner](./Artwork/banner@2x.png)
|
2019-08-03 05:23:43 +03:00
|
|
|
|
|
|
|
# RichTextKit
|
|
|
|
|
2019-08-03 05:39:17 +03:00
|
|
|
RichTextKit is a rich-text layout, measurement and rendering library for SkiaSharp.
|
2019-08-03 05:23:43 +03:00
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
* Rich text layout
|
2019-08-03 05:39:17 +03:00
|
|
|
* Supports most common font styles (bold, italic, underline, super/sub-script etc...)
|
2019-08-12 16:49:17 +03:00
|
|
|
* Text shaping using HarfBuzzSharp
|
2019-08-03 05:39:17 +03:00
|
|
|
* Font fallback for emoji and int'l character sets
|
|
|
|
* Bi-directional and LTR/RTL Text Support (UAX #9)
|
|
|
|
* Unicode word-break algorithm (UAX #14)
|
|
|
|
* Max height and max line limits
|
|
|
|
* Truncate with ellipsis support
|
|
|
|
* Text measurement support
|
|
|
|
* Hit testing and caret position information
|
2019-08-03 08:02:08 +03:00
|
|
|
* Ability to paint selection range highlight
|
2019-08-03 05:23:43 +03:00
|
|
|
* Easy to use
|
2019-08-03 05:39:17 +03:00
|
|
|
* Minimal dependencies (just SkiaSharp and HarfBuzzSharp)
|
|
|
|
|
2019-08-04 09:40:57 +03:00
|
|
|
![Sandbox](docsrc/sandbox@2x.png)
|
|
|
|
|
|
|
|
|
2019-08-03 05:39:17 +03:00
|
|
|
## Under Development
|
|
|
|
|
2024-03-06 04:19:50 +03:00
|
|
|
RichTextKit is still under development. It works fine on Windows under net462 and
|
|
|
|
net5.0 but hasn't been tested on other platforms.
|
2019-08-03 05:39:17 +03:00
|
|
|
|
|
|
|
Also, text layout in general and Unicode and international text specifically are a
|
|
|
|
complicated topics - almost certainly there are issues I'm unaware of and I'm
|
|
|
|
hoping the community can help improve this project over time...
|
|
|
|
|
|
|
|
That said, RichTextKit certainly does a better job than Skia on it's own.
|
2019-08-03 05:23:43 +03:00
|
|
|
|
|
|
|
## Documentation
|
|
|
|
|
|
|
|
See here for [documentation](https://www.toptensoftware.com/richtextkit).
|