diff --git a/README.md b/README.md index d0535ed..9ba889b 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ fontconfig-rs A wrapper around [freedesktop.org's fontconfig library][homepage], for locating fonts on a UNIX like systems such as Linux and FreeBSD. Requires fontconfig to be installed. Dependencies -============ +------------ * Arch Linux: `fontconfig` * Debian-based systems: `libfontconfig1-dev` @@ -28,13 +28,13 @@ Dependencies * Void Linux: `fontconfig-devel` Usage -===== +----- Cargo.toml: ```toml [dependencies] -fontconfig = "0.1.0" +yeslogic-fontconfig = "0.1.0" ``` main.rs: @@ -55,6 +55,26 @@ fn main() { You could then, for example, use `font.path` to create a `GlyphCache` from [`opengl_graphics`][gl] and pass it to [`conrod`][conrod]. -[gl]: https://github.com/PistonDevelopers/opengl_graphics +Other Fontconfig Crates +----------------------- + +* [servo-fontconfig] — This crate provides a low-level interface only. + It depends on [servo-fontconfig-sys], which will fall back to + building a vendored version of Fontconfig if a compatible version can't be found. It in turn depends on + [expat-sys], which does the same thing regarding a vendored version of + Expat. This makes it easier if you are distributing a code base that needs Fontconfig but provides less control + over the libraries that will be used. +* [fontconfig] + [fontconfig-sys] — These crates have not been updated since Dec 2014. + +For our needs in [Prince] we wanted higher-level bindings that did not fall back on vendored +versions of libraries, which is what the crates in this repo provide. + [conrod]: https://github.com/PistonDevelopers/conrod +[expat-sys]: https://crates.io/crates/expat-sys +[fontconfig-sys]: https://crates.io/crates/fontconfig-sys +[fontconfig]: https://crates.io/crates/fontconfig +[gl]: https://github.com/PistonDevelopers/opengl_graphics [homepage]: https://www.freedesktop.org/wiki/Software/fontconfig/ +[Prince]: https://www.princexml.com/ +[servo-fontconfig-sys]: https://crates.io/crates/servo-fontconfig-sys +[servo-fontconfig]: https://crates.io/crates/servo-fontconfig diff --git a/fontconfig-sys/Cargo.toml b/fontconfig-sys/Cargo.toml index 02248c4..63a0c05 100644 --- a/fontconfig-sys/Cargo.toml +++ b/fontconfig-sys/Cargo.toml @@ -8,7 +8,7 @@ authors = [ ] license = "MIT" -description = "Raw bindings to the fontconfig library" +description = "Raw bindings to Fontconfig without a vendored C library" keywords = ["font", "bindings", "fontconfig", "sys"] categories = ["text-processing"] @@ -19,6 +19,9 @@ repository = "https://github.com/yeslogic/fontconfig-rs" build = "build.rs" links = "fontconfig" +[badges] +travis-ci = { repository = "yeslogic/fontconfig-rs" } + [lib] name = "fontconfig_sys" diff --git a/fontconfig/Cargo.toml b/fontconfig/Cargo.toml index 086093b..cbd2545 100644 --- a/fontconfig/Cargo.toml +++ b/fontconfig/Cargo.toml @@ -9,7 +9,7 @@ authors = [ license = "MIT" readme = "README.md" -description = "Safe wrapper around the fontconfig library" +description = "Safe, higher-level wrapper around the Fontconfig library" keywords = ["font", "search", "wrapper", "fontconfig"] categories = ["text-processing"] @@ -17,6 +17,9 @@ homepage = "https://github.com/yeslogic/fontconfig-rs" documentation = "https://docs.rs/crate/yeslogic-fontconfig" repository = "https://github.com/yeslogic/fontconfig-rs" +[badges] +travis-ci = { repository = "yeslogic/fontconfig-rs" } + [lib] name = "fontconfig"