diff --git a/CHANGELOG.md b/CHANGELOG.md index d428828c..bea1e8d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,17 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [0.21.0] - 2024-05-10 +### Added +- `COLR` / `CPAL` v1 support. + Thanks to [LaurenzV](https://github.com/LaurenzV). + +### Changed +- Replace `Face::is_bitmap_embedding_allowed` with `Face::is_outline_embedding_allowed`. + The old one had a bool flag flipped. + Thanks to [Fuzzyzilla](https://github.com/Fuzzyzilla). +- Increase lenience of embed permissions for older OS/2 versions. + Thanks to [Fuzzyzilla](https://github.com/Fuzzyzilla). ## [0.20.0] - 2023-10-15 ### Added @@ -409,7 +420,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Removed - `GDEF` table parsing. -[Unreleased]: https://github.com/RazrFalcon/ttf-parser/compare/v0.20.0...HEAD +[Unreleased]: https://github.com/RazrFalcon/ttf-parser/compare/v0.21.0...HEAD +[0.21.0]: https://github.com/RazrFalcon/ttf-parser/compare/v0.20.0...v0.21.0 [0.20.0]: https://github.com/RazrFalcon/ttf-parser/compare/v0.19.2...v0.20.0 [0.19.2]: https://github.com/RazrFalcon/ttf-parser/compare/v0.19.1...v0.19.2 [0.19.1]: https://github.com/RazrFalcon/ttf-parser/compare/v0.19.0...v0.19.1 diff --git a/Cargo.toml b/Cargo.toml index 6e5ecf7d..18d8e755 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ttf-parser" -version = "0.20.0" +version = "0.21.0" authors = ["Yevhenii Reizner "] keywords = ["ttf", "truetype", "opentype"] categories = ["parser-implementations"] diff --git a/src/lib.rs b/src/lib.rs index 527fa7cd..bdfb1021 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1744,6 +1744,7 @@ impl<'a> Face<'a> { } /// Checks if the face allows outline data to be embedded. + /// /// If false, only bitmaps may be embedded in accordance with [`Self::permissions`]. /// /// If the font contains no bitmaps and this flag is not set, it implies no embedding is allowed. diff --git a/src/tables/os2.rs b/src/tables/os2.rs index c7a02f20..35e09db7 100644 --- a/src/tables/os2.rs +++ b/src/tables/os2.rs @@ -463,6 +463,7 @@ impl<'a> Table<'a> { } /// Checks if the face allows outline data to be embedded. + /// /// If false, only bitmaps may be embedded in accordance with [`Self::permissions`]. /// /// If the font contains no bitmaps and this flag is not set, it implies no embedding is allowed.