From 750d98842953c92448f617cc976c42260aa9df8e Mon Sep 17 00:00:00 2001 From: Edgar Geier Date: Wed, 1 Mar 2023 12:15:58 +0100 Subject: [PATCH] Make `FontKey` `repr(transparent)` if `swash` feature is disabled --- src/font/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/font/mod.rs b/src/font/mod.rs index 1a116f9..066656f 100644 --- a/src/font/mod.rs +++ b/src/font/mod.rs @@ -8,6 +8,7 @@ pub use self::system::*; mod system; #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] +#[cfg_attr(not(feature = "swash"), repr(transparent))] /// Identifies a [`Font`] in a [`FontSystem`] pub struct FontKey { pub id: fontdb::ID,