-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split
fontique
into its own package.
- Loading branch information
Showing
40 changed files
with
263 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
# source control. | ||
Google LLC | ||
Chad Brokaw | ||
Kaur Kuut |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,49 @@ | ||
[package] | ||
name = "parley" | ||
version = "0.0.1" | ||
authors = ["Chad Brokaw <[email protected]>"] | ||
license = "Apache-2.0 OR MIT" | ||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"fontique" | ||
] | ||
|
||
[workspace.package] | ||
edition = "2021" | ||
# Keep in sync with RUST_MIN_VER in .github/workflows/ci.yml and with the relevant README.md files. | ||
rust-version = "1.74" | ||
rust-version = "1.70" | ||
license = "Apache-2.0 OR MIT" | ||
repository = "https://github.com/linebender/parley" | ||
|
||
[package] | ||
name = "parley" | ||
version = "0.1.0" | ||
description = "Parley provides an API for implementing rich text layout." | ||
keywords = ["text", "layout"] | ||
categories = ["gui", "graphics"] | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
exclude = ["/.github/", "/doc/", ".gitignore"] | ||
|
||
[workspace.lints] | ||
clippy.doc_markdown = "warn" | ||
clippy.semicolon_if_nothing_returned = "warn" | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[features] | ||
default = ["system"] | ||
# Enabled support for system font backends | ||
system = ["std"] | ||
std = ["dep:memmap2"] | ||
std = ["fontique/std", "skrifa/std", "peniko/std"] | ||
libm = ["fontique/libm", "skrifa/libm", "peniko/libm"] | ||
# Enables support for system font backends | ||
system = ["std", "fontique/system"] | ||
|
||
[dependencies] | ||
swash = "0.1.15" | ||
skrifa = { version = "0.19.0", default-features = false, features = ["libm"] } | ||
smallvec = "1.13.2" | ||
memmap2 = { version = "0.5.10", optional = true } | ||
unicode-script = { version = "0.5.6", optional = true } | ||
peniko = { version = "0.1.0", default-features = false, features = ["libm"] } | ||
icu_properties = "1.4.0" | ||
icu_locid = "1.4.0" | ||
hashbrown = "0.14.3" | ||
|
||
[target.'cfg(target_family="windows")'.dependencies] | ||
dwrote = "0.11.0" | ||
winapi = { version = "0.3.9", features = ["dwrite", "dwrite_1", "dwrite_3", "winnt", "unknwnbase", "libloaderapi", "winnls"] } | ||
wio = "0.2.2" | ||
|
||
[target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies] | ||
core-text = "20.1.0" | ||
core-foundation = "0.9.4" | ||
core-foundation-sys = "0.8.6" | ||
skrifa = { workspace = true } | ||
peniko = { workspace = true } | ||
fontique = { workspace = true } | ||
|
||
[target.'cfg(not(any(target_os="macos", target_os="ios", target_family="windows")))'.dependencies] | ||
anyhow = "1.0.82" | ||
bytemuck = { version = "1.15.0", features = ["derive"] } | ||
fontconfig-cache-parser = "0.2" | ||
thiserror = "1.0.58" | ||
roxmltree = "0.18.1" | ||
[workspace.dependencies] | ||
fontique = { version = "0.1.0", default-features = false, path = "fontique" } | ||
skrifa = { version = "0.19.0", default-features = false } | ||
peniko = { version = "0.1.0", default-features = false } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
[package] | ||
name = "fontique" | ||
version = "0.1.0" # Keep in sync with workspace dependency specification | ||
description = "Font enumeration and fallback." | ||
keywords = ["font", "text"] | ||
categories = ["gui", "os"] | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
license.workspace = true | ||
repository.workspace = true | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[features] | ||
default = ["system"] | ||
std = ["skrifa/std", "peniko/std", "dep:memmap2"] | ||
libm = ["skrifa/libm", "peniko/libm", "dep:core_maths"] | ||
# Enabled support for system font backends | ||
system = ["std"] | ||
|
||
[dependencies] | ||
skrifa = { workspace = true } | ||
peniko = { workspace = true } | ||
smallvec = "1.13.2" | ||
memmap2 = { version = "0.5.10", optional = true } | ||
unicode-script = { version = "0.5.6", optional = true } | ||
core_maths = { version = "0.1.0", optional = true } | ||
icu_properties = "1.4.0" | ||
icu_locid = "1.4.0" | ||
hashbrown = "0.14.3" | ||
|
||
[target.'cfg(target_family="windows")'.dependencies] | ||
dwrote = "0.11.0" | ||
winapi = { version = "0.3.9", features = ["dwrite", "dwrite_1", "dwrite_3", "winnt", "unknwnbase", "libloaderapi", "winnls"] } | ||
wio = "0.2.2" | ||
|
||
[target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies] | ||
core-text = "20.1.0" | ||
core-foundation = "0.9.4" | ||
core-foundation-sys = "0.8.6" | ||
|
||
[target.'cfg(not(any(target_os="macos", target_os="ios", target_family="windows")))'.dependencies] | ||
anyhow = "1.0.82" | ||
bytemuck = { version = "1.15.0", features = ["derive"] } | ||
fontconfig-cache-parser = "0.2.0" | ||
thiserror = "1.0.58" | ||
roxmltree = "0.18.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<div align="center"> | ||
|
||
# Fontique | ||
|
||
**Font enumeration and fallback** | ||
|
||
[![Latest published fontique version.](https://img.shields.io/crates/v/fontique.svg)](https://crates.io/crates/fontique) | ||
[![Documentation build status.](https://img.shields.io/docsrs/fontique.svg)](https://docs.rs/fontique) | ||
[![Dependency staleness status.](https://deps.rs/repo/github/linebender/fontique/status.svg)](https://deps.rs/repo/github/linebender/fontique) | ||
[![Linebender Zulip chat.](https://img.shields.io/badge/Linebender-%23text-blue?logo=Zulip)](https://xi.zulipchat.com/#narrow/stream/205635-text) | ||
[![Apache 2.0 or MIT license.](https://img.shields.io/badge/license-Apache--2.0_OR_MIT-blue.svg)](#license) | ||
|
||
</div> | ||
|
||
Fontique provides font enumeration and fallback. | ||
|
||
## Minimum supported Rust Version (MSRV) | ||
|
||
This version of Fontique has been verified to compile with **Rust 1.70** and later. | ||
|
||
Future versions of Fontique might increase the Rust version requirement. | ||
It will not be treated as a breaking change and as such can even happen with small patch releases. | ||
|
||
<details> | ||
<summary>Click here if compiling fails.</summary> | ||
|
||
As time has passed, some of Fontique's dependencies could have released versions with a higher Rust requirement. | ||
If you encounter a compilation issue due to a dependency and don't want to upgrade your Rust toolchain, then you could downgrade the dependency. | ||
|
||
```sh | ||
# Use the problematic dependency's name and version | ||
cargo update -p package_name --precise 0.1.1 | ||
``` | ||
</details> | ||
|
||
## Community | ||
|
||
Discussion of Fontique development happens in the [Linebender Zulip](https://xi.zulipchat.com/), specifically the [#text stream](https://xi.zulipchat.com/#narrow/stream/205635-text). | ||
All public content can be read without logging in. | ||
|
||
Contributions are welcome by pull request. The [Rust code of conduct] applies. | ||
|
||
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache 2.0 license, shall be licensed as noted in the [License](#license) section, without any additional terms or conditions. | ||
|
||
## License | ||
|
||
Licensed under either of | ||
|
||
- Apache License, Version 2.0 ([LICENSE-APACHE](../LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>) | ||
- MIT license ([LICENSE-MIT](../LICENSE-MIT) or <http://opensource.org/licenses/MIT>) | ||
|
||
at your option. | ||
|
||
[Rust code of conduct]: https://www.rust-lang.org/policies/code-of-conduct |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.