Skip to content

Commit

Permalink
Rename ignore-invalid-composite-glyph-flags to ignore-invalid-compone…
Browse files Browse the repository at this point in the history
…nt-flags
  • Loading branch information
IvanUkhov committed Oct 23, 2023
1 parent 1a21950 commit fcc9074
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with: {toolchain: stable, components: clippy, rustfmt}
with: {toolchain: stable, components: "clippy, rustfmt"}
- run: cargo clippy -- -D warnings
- run: cargo fmt --all -- --check

Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "truetype"
version = "0.43.2"
version = "0.43.3"
edition = "2021"
license = "Apache-2.0/MIT"
authors = [
Expand All @@ -22,7 +22,7 @@ typeface = "0.3.0"

[features]
# https://github.com/google/fonts/issues/5551
ignore-invalid-composite-glyph-flags = []
ignore-invalid-component-flags = []
# https://github.com/google/fonts/issues/5805
# https://github.com/web-platform-tests/wpt/issues/37713
ignore-invalid-language-ids = []
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ will be licensed according to the terms given in [LICENSE.md](LICENSE.md).

[opentype]: https://github.com/bodoni/opentype

[build-img]: https://github.com/bodoni/truetype/workflows/build/badge.svg
[build-img]: https://github.com/bodoni/truetype/actions/workflows/build.yml/badge.svg
[build-url]: https://github.com/bodoni/truetype/actions/workflows/build.yml
[documentation-img]: https://docs.rs/truetype/badge.svg
[documentation-url]: https://docs.rs/truetype
Expand Down
4 changes: 2 additions & 2 deletions src/glyph_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ flags! {
}
}

#[cfg(not(feature = "ignore-invalid-composite-glyph-flags"))]
#[cfg(not(feature = "ignore-invalid-component-flags"))]
flags!(@read pub ComponentFlags(u16));

#[cfg(feature = "ignore-invalid-composite-glyph-flags")]
#[cfg(feature = "ignore-invalid-component-flags")]
impl crate::Value for ComponentFlags {
#[inline]
fn read<T: Tape>(tape: &mut T) -> Result<Self> {
Expand Down
2 changes: 1 addition & 1 deletion tests/glyph_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mod ubuntu_condensed {
use truetype::{Value, Walue};

#[test]
#[cfg_attr(not(feature = "ignore-invalid-composite-glyph-flags"), should_panic)]
#[cfg_attr(not(feature = "ignore-invalid-component-flags"), should_panic)]
fn read() {
use truetype::glyph_data::Description;
use truetype::{FontHeader, GlyphData, GlyphMapping, MaximumProfile};
Expand Down

0 comments on commit fcc9074

Please sign in to comment.