From 2d67e31bf1da8bb7aa182c76cd25dcba5cf4426f Mon Sep 17 00:00:00 2001 From: Stewart Connor Date: Fri, 21 Mar 2025 17:56:14 +1100 Subject: [PATCH] format --- src/shape.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/shape.rs b/src/shape.rs index b7ec113..c98d78e 100644 --- a/src/shape.rs +++ b/src/shape.rs @@ -143,25 +143,21 @@ fn shape_fallback( let attrs = attrs_list.get_span(start_run); let mut features = Vec::new(); - features.push(rustybuzz::Feature::new( rustybuzz::ttf_parser::Tag::from_bytes(b"kern"), if attrs.font_features.kerning { 1 } else { 0 }, 0..usize::MAX, )); - features.push(rustybuzz::Feature::new( rustybuzz::ttf_parser::Tag::from_bytes(b"liga"), if attrs.font_features.standard_ligatures { 1 } else { 0 }, 0..usize::MAX, )); - features.push(rustybuzz::Feature::new( rustybuzz::ttf_parser::Tag::from_bytes(b"clig"), if attrs.font_features.contextual_ligatures { 1 } else { 0 }, 0..usize::MAX, )); - features.push(rustybuzz::Feature::new( rustybuzz::ttf_parser::Tag::from_bytes(b"dlig"), if attrs.font_features.discretionary_ligatures { 1 } else { 0 },