Skip to content

Commit

Permalink
Update GlyphInfo::use_category byte.
Browse files Browse the repository at this point in the history
  • Loading branch information
RazrFalcon committed Sep 5, 2023
1 parent 354537e commit 7678b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/complex/universal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ const OTHER_FEATURES: &[Tag] = &[
impl GlyphInfo {
pub(crate) fn use_category(&self) -> Category {
let v: &[u8; 4] = bytemuck::cast_ref(&self.var2);
v[2]
v[3]
}

fn set_use_category(&mut self, c: Category) {
let v: &mut [u8; 4] = bytemuck::cast_mut(&mut self.var2);
v[2] = c;
v[3] = c;
}

fn is_halant_use(&self) -> bool {
Expand Down

0 comments on commit 7678b6f

Please sign in to comment.