Crates.io | kas-text |
lib.rs | kas-text |
version | |
source | src |
created_at | 2020-08-11 10:10:56.833473 |
updated_at | 2024-12-02 14:56:07.559861 |
description | Text layout and font management |
homepage | |
repository | https://github.com/kas-gui/kas-text |
max_upload_size | |
id | 275321 |
Cargo.toml error: | TOML parse error at line 20, column 1 | 20 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A pure-Rust rich-text processing library suitable for KAS and other GUI tools.
What it does (or may in the future) do:
ab_glyph
or fontdue
)What it does not do:
WindowEvent
) to text
edit operations is beyond the scope of this project. The API does cover
replacing text ranges and finding the nearest glyph index to a coordinate.FormattableText
trait and a (limited) Markdown processor are included.For more, see the initial design document and issue #1.
Since kas-text
only concerns text-layout, all examples here are courtesy of KAS GUI. See the examples directory.
Pure-Rust alternatives for typesetting and rendering text:
Non-pure-Rust alternatives include font-kit and piet among others.
Contributions are welcome. For the less straightforward contributions it is advisable to discuss in an issue before creating a pull-request.
Testing is currently done in a very ad-hoc manner via KAS examples. This is facilitated by tying KAS commits to kas-text commit hashes during development and allows testing editing as well as display. A comprehensive test framework must consider a huge number of cases and the test framework alone would constitute considerably more work than building this library, so for now user-testing and bug reports will have to suffice.
The COPYRIGHT file includes a list of contributors who claim copyright on this project. This list may be incomplete; new contributors may optionally add themselves to this list.
The KAS library is published under the terms of the Apache License, Version 2.0. You may obtain a copy of this license from the LICENSE file or on the following web page: https://www.apache.org/licenses/LICENSE-2.0