Make FontKey repr(transparent) if swash feature is disabled

This commit is contained in:
Edgar Geier 2023-03-01 12:15:58 +01:00
parent 506a4194be
commit 750d988429
No known key found for this signature in database
GPG key ID: 7A65B51FD6B75EF5

View file

@ -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,