diff --git a/read-fonts/src/tables/glyf.rs b/read-fonts/src/tables/glyf.rs index 23d38a4d0..bb171d065 100644 --- a/read-fonts/src/tables/glyf.rs +++ b/read-fonts/src/tables/glyf.rs @@ -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 + 'a + Clone { @@ -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. diff --git a/skrifa/src/scale/glyf/scaler.rs b/skrifa/src/scale/glyf/scaler.rs index dda0e8805..190aad06a 100644 --- a/skrifa/src/scale/glyf/scaler.rs +++ b/skrifa/src/scale/glyf/scaler.rs @@ -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); } }