Skip to content

Commit e36c8d0

Browse files
committed
Published 0.37.0
- Updated freetype-sys - Added instructions to README
1 parent 9115178 commit e36c8d0

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

Cargo.toml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "freetype-rs"
3-
version = "0.36.0"
3+
version = "0.37.0"
44
authors = ["Coeuvre <[email protected]>"]
55
keywords = ["freetype", "font", "glyph"]
66
description = "Bindings for FreeType font library"
@@ -12,10 +12,13 @@ homepage = "https://github.com/PistonDevelopers/freetype-rs"
1212
[lib]
1313
name = "freetype"
1414

15+
[features]
16+
bundled = ["freetype-sys/bundled"]
17+
1518
[dependencies]
1619
bitflags = "2.4.0"
1720
libc = "0.2.1"
18-
freetype-sys = "0.20.0"
21+
freetype-sys = "0.21.0"
1922

2023
[dev-dependencies]
2124
unicode-normalization = "0.1.0"

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ Rust bindings for FreeType library
88
* *FreeType2 development libraries*: For installation instructions see
99
[freetype-sys](https://github.com/PistonDevelopers/freetype-sys).
1010

11+
If the building fails, then it is likely that pkg-config does not find a FreeType library it can bind to. Use the feature "bundled" to build a static version of the library (requires a C compiler):
12+
13+
```text
14+
[dependencies]
15+
freetype-rs = { version = "*", features = ["bundled"] }
16+
```
17+
1118
## Build
1219

1320
Clone this repo then run

0 commit comments

Comments
 (0)