Skip to content

Commit

Permalink
Merge fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
RazrFalcon committed Oct 15, 2023
1 parent 75cf9d0 commit ad4449d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/tables/colr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ impl FromData for CompositeMode {
}
}

/// A trait for color glyph painting
/// A trait for color glyph painting.
///
/// See [COLR](https://learn.microsoft.com/en-us/typography/opentype/spec/colr) for details.
pub trait Painter<'a> {
Expand Down Expand Up @@ -393,7 +393,7 @@ impl<'a> Table<'a> {
let mut s = Stream::new(data);

let version = s.read::<u16>()?;
if version != 0 {
if version > 1 {
return None;
}

Expand Down
2 changes: 1 addition & 1 deletion src/tables/cpal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl<'a> Table<'a> {
let mut s = Stream::new(data);

let version = s.read::<u16>()?;
if version != 0 {
if version > 1 {
return None;
}

Expand Down

0 comments on commit ad4449d

Please sign in to comment.