Skip to content

Commit

Permalink
Fix opentype_layout::LookupFlags::mark_attachment_type parsing.
Browse files Browse the repository at this point in the history
Closes #150
  • Loading branch information
RazrFalcon committed Jun 2, 2024
1 parent 98ca251 commit 9bbd432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Fixed
- `opentype_layout::LookupFlags::mark_attachment_type` parsing.

## [0.21.1] - 2024-05-11
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/ggg/lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl LookupFlags {
#[inline] pub fn ignore_marks(self) -> bool { self.0 & 0x0008 != 0 }
#[inline] pub fn ignore_flags(self) -> bool { self.0 & 0x000E != 0 }
#[inline] pub fn use_mark_filtering_set(self) -> bool { self.0 & 0x0010 != 0 }
#[inline] pub fn mark_attachment_type(self) -> u8 { (self.0 & 0xFF00) as u8 }
#[inline] pub fn mark_attachment_type(self) -> u8 { ((self.0 & 0xFF00) >> 8) as u8 }
}

impl FromData for LookupFlags {
Expand Down

0 comments on commit 9bbd432

Please sign in to comment.