fontique 0.13.0

Font enumeration and fallback.
Documentation

Fontique

Font enumeration and fallback

Latest published version. Documentation build status. Apache 2.0 or MIT license.
Linebender Zulip chat. GitHub Actions CI status. Dependency staleness status.

Font enumeration and fallback.

Features

The following crate feature flags are available:

  • std (enabled by default): Get floating point functions from the standard library (likely using your target's libc).
  • libm: Use floating point implementations from libm. This is useful for no_std environments. However, note that the libm crate is not as efficient as the standard library.
  • bytemuck: Forwarded to parlance which then implements traits from bytemuck on its types.
  • system (enabled by default): Enable support for system font backends. This also enables std.
  • fontconfig-dlopen: Use dlopen to load the fontconfig library. This allows Fontique to compile even if the system does not have fontconfig installed, although font fallback to system fonts will not work in this case.

At least one of std and libm is required; std overrides libm. Note that Fontique requires that an allocator is available (i.e. it uses alloc).

Minimum supported Rust Version (MSRV)

This version of Fontique has been verified to compile with Rust 1.88 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.

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.

# Use the problematic dependency's name and version
cargo update -p package_name --precise 0.1.1

Community

Discussion of Fontique development happens in the Linebender Zulip, specifically the #parley channel. All public content can be read without logging in.

License

Licensed under either of

at your option.

Contribution

Contributions are welcome by pull request. The Rust code of conduct applies. Please feel free to add your name to the AUTHORS file in any substantive pull request.

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 above, without any additional terms or conditions.