diff --git a/read-fonts/src/tables/glyf.rs b/read-fonts/src/tables/glyf.rs index 2fb41352e..2002a031c 100644 --- a/read-fonts/src/tables/glyf.rs +++ b/read-fonts/src/tables/glyf.rs @@ -263,7 +263,11 @@ impl<'a> SimpleGlyph<'a> { } y = y.wrapping_add(delta); point.y = C::from_i32(y); - *point_flags = PointFlags::from_bits(point_flags.0); + // Ignore the cubic off curve bit until the cubic glyf portion of + // the spec is finalized + // See + //*point_flags = PointFlags::from_bits(point_flags.0); + *point_flags = PointFlags(point_flags.0 & PointFlags::ON_CURVE); } Ok(()) } diff --git a/skrifa/src/outline/mod.rs b/skrifa/src/outline/mod.rs index 9721953f2..6fcdb292b 100644 --- a/skrifa/src/outline/mod.rs +++ b/skrifa/src/outline/mod.rs @@ -1352,6 +1352,9 @@ mod tests { const CUBIC_GLYPH: GlyphId = GlyphId::new(2); #[test] + // Ignore test until cubic glyf spec finalizes + // See + #[ignore] fn draw_cubic() { let font = FontRef::new(font_test_data::CUBIC_GLYF).unwrap(); assert_glyph_path_start_with( diff --git a/skrifa/src/outline/unscaled.rs b/skrifa/src/outline/unscaled.rs index d5eca5332..a4eba7acd 100644 --- a/skrifa/src/outline/unscaled.rs +++ b/skrifa/src/outline/unscaled.rs @@ -260,6 +260,9 @@ mod tests { } #[test] + // Ignore test until cubic glyf spec finalizes + // See + #[ignore] fn read_cubic_glyf_outline() { let font = FontRef::new(font_test_data::CUBIC_GLYF).unwrap(); let glyph = font.outline_glyphs().get(GlyphId::new(2)).unwrap();