From 03180dd9ee9c04dd5f107aa9389e35245d373009 Mon Sep 17 00:00:00 2001 From: Stewart Connor Date: Wed, 26 Mar 2025 17:45:21 +1100 Subject: [PATCH] nits --- src/attrs.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/attrs.rs b/src/attrs.rs index 2a2d4c4..ceb08c6 100644 --- a/src/attrs.rs +++ b/src/attrs.rs @@ -157,27 +157,22 @@ impl FeatureTag { } } -/// Font feature with tag and value #[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] pub struct Feature { pub tag: FeatureTag, pub value: u32, } -/// Font features for text shaping #[derive(Clone, Debug, Default, Eq, Hash, PartialEq)] pub struct FontFeatures { - /// List of OpenType features with their values (0 = disabled, 1 = enabled) pub features: Vec, } impl FontFeatures { - /// Create new font features with default settings pub fn new() -> Self { Self { features: Vec::new() } } - /// Set a feature value pub fn set(&mut self, tag: FeatureTag, value: u32) -> &mut Self { self.features.push(Feature { tag, value }); self