Skip to content

Commit

Permalink
Use freetype-sys rather than Servo's freetype.
Browse files Browse the repository at this point in the history
This simplifies the dependency graph as we weren't getting anything
from using the Servo `freetype` crate here as it also built and
depended upon `freetype-sys`.

Fixes #238.
  • Loading branch information
waywardmonkeys committed Sep 11, 2023
1 parent a951584 commit 8dd5c44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions harfbuzz-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ version = "0.3"
optional = true
features = ["dwrite"]

[dependencies.freetype]
version = "0.7"
[dependencies.freetype-sys]
version = "0.18"
optional = true

[features]
default = ["coretext", "directwrite", "freetype"]
bundled = []
coretext = ["core-graphics", "core-text", "foreign-types"]
directwrite = ["winapi"]
freetype = ["freetype-sys"]
2 changes: 1 addition & 1 deletion harfbuzz-sys/src/freetype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ use crate::hb_font_t;

extern "C" {
/// This requires that the `freetype` feature is enabled.
pub fn hb_ft_font_create_referenced(face: freetype::freetype::FT_Face) -> *mut hb_font_t;
pub fn hb_ft_font_create_referenced(face: freetype_sys::FT_Face) -> *mut hb_font_t;
}

0 comments on commit 8dd5c44

Please sign in to comment.