Skip to content

Commit 9ef9211

Browse files
committed
Update ttf-parser to 0.22
Enable owned_ttf_parser/no-std-float when enabling libm feature
1 parent f278366 commit 9ef9211

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

glyph/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Unreleased
2+
* Update _ttf-parser_ to `0.22`.
3+
14
# 0.2.27
25
* Add `Font` glyph layout concept documentation demonstrating "ascent", "descent", "h_side_bearing",
36
"h_advance", "height", "line_gap", "baseline".

glyph/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ license = "Apache-2.0"
1010
readme = "README.md"
1111

1212
[dependencies]
13-
owned_ttf_parser = { version = "0.21", default-features = false }
13+
owned_ttf_parser = { version = "0.22", default-features = false }
1414
ab_glyph_rasterizer = { version = "0.1.2", path = "../rasterizer", default-features = false }
1515
# no_std float stuff
1616
libm = { version = "0.2.1", optional = true }
@@ -23,5 +23,5 @@ default = ["std", "variable-fonts"]
2323
# Activates usage of std.
2424
std = ["owned_ttf_parser/default", "ab_glyph_rasterizer/default"]
2525
# Uses libm when not using std. This needs to be active in that case.
26-
libm = ["dep:libm", "ab_glyph_rasterizer/libm"]
26+
libm = ["dep:libm", "ab_glyph_rasterizer/libm", "owned_ttf_parser/no-std-float"]
2727
variable-fonts = ["owned_ttf_parser/variable-fonts"]

0 commit comments

Comments
 (0)