Skip to content

Commit

Permalink
update comment and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrg committed Aug 24, 2023
1 parent 211ba5d commit 590b3fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions read-fonts/src/tables/glyf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ impl<'a> CompositeGlyph<'a> {
}
}

/// Returns an iterator that yields the glyph identifier of each component
/// in the composite glyph.
/// Returns an iterator that yields the glyph identifier and flags of each
/// component in the composite glyph.
pub fn component_glyphs_and_flags(
&self,
) -> impl Iterator<Item = (GlyphId, CompositeGlyphFlags)> + 'a + Clone {
Expand Down Expand Up @@ -594,7 +594,7 @@ impl Iterator for ComponentIter<'_> {
}
}

/// Iterator that only returns glyph identifiers for each component.
/// Iterator that only returns glyph identifiers and flags for each component.
///
/// Significantly faster in cases where we're just processing the glyph
/// tree, counting components or accessing instructions.
Expand Down
2 changes: 1 addition & 1 deletion skrifa/src/scale/glyf/scaler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ mod tests {
for gid in 0..glyph_count {
let glyph = scaler.glyph(GlyphId::new(gid), false).unwrap();
// GID 2 is a composite glyph with the overlap bit on a component
// GID 3 is a simple glyph with the overflag bit on the first flag
// GID 3 is a simple glyph with the overlap bit on the first flag
assert_eq!(glyph.has_overlaps, gid == 2 || gid == 3);
}
}
Expand Down

0 comments on commit 590b3fc

Please sign in to comment.