Skip to content

Commit 2af84c8

Browse files
Use freetype-sys rather than Servo's freetype. (#240)
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.
1 parent a951584 commit 2af84c8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

harfbuzz-sys/Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ version = "0.3"
3737
optional = true
3838
features = ["dwrite"]
3939

40-
[dependencies.freetype]
41-
version = "0.7"
40+
[dependencies.freetype-sys]
41+
version = "0.18"
4242
optional = true
4343

4444
[features]
4545
default = ["coretext", "directwrite", "freetype"]
4646
bundled = []
4747
coretext = ["core-graphics", "core-text", "foreign-types"]
4848
directwrite = ["winapi"]
49+
freetype = ["freetype-sys"]

harfbuzz-sys/src/freetype.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ use crate::hb_font_t;
1111

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

0 commit comments

Comments
 (0)