Skip to content

Commit

Permalink
0.18.1 public pre-parsed face (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexheretic authored Jan 31, 2023
1 parent 3733d84 commit 8b8546c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.18.1
* Make `PreParsedSubtables` `face` field public. This allows referencing and unwrapping the underlying face.

# 0.18.0
* Update _ttf-parser_ to `0.18.0`, [changelog](https://github.com/RazrFalcon/ttf-parser/blob/master/CHANGELOG.md#0180---2022-12-25).

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ license = "Apache-2.0"
readme="README.md"

[dependencies]
ttf-parser = { version = "0.18", default-features = false }
ttf-parser = { version = "0.18.1", default-features = false }

[features]
default = ["std", "opentype-layout", "apple-layout", "variable-fonts", "glyph-names"]
Expand Down
2 changes: 1 addition & 1 deletion src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ impl FaceMut for ttf_parser::Face<'_> {
impl FaceMut for &mut ttf_parser::Face<'_> {
#[inline]
fn set_variation(&mut self, axis: ttf_parser::Tag, value: f32) -> Option<()> {
ttf_parser::Face::set_variation(*self, axis, value)
ttf_parser::Face::set_variation(self, axis, value)
}
}
3 changes: 2 additions & 1 deletion src/preparse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ use ttf_parser::{cmap, kern, Face, GlyphId};
/// ```
#[derive(Clone)]
pub struct PreParsedSubtables<'face, F> {
pub(crate) face: F,
/// Underlying face.
pub face: F,
// note must not be public as could be self-referencing
pub(crate) subtables: FaceSubtables<'face>,
}
Expand Down

0 comments on commit 8b8546c

Please sign in to comment.