Make FontKey repr(transparent) if swash feature is disabled
This commit is contained in:
parent
506a4194be
commit
750d988429
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue