From 829a59bd9567b1ce1dd38c2fd527cf9ff838625b Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Fri, 13 Dec 2024 04:19:56 +0100 Subject: [PATCH] Apply fallback font to more Unices - DragonFly, FreeBSD, NetBSD, OpenBSD all use fontconfig - Solaris-based systems use fontconfig --- src/font/fallback/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/font/fallback/mod.rs b/src/font/fallback/mod.rs index 7e160ea..048b2c3 100644 --- a/src/font/fallback/mod.rs +++ b/src/font/fallback/mod.rs @@ -9,7 +9,7 @@ use crate::{Font, FontMatchKey, FontSystem, ShapeBuffer}; use self::platform::*; -#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows",)))] +#[cfg(not(any(unix, target_os = "windows")))] #[path = "other.rs"] mod platform; @@ -17,7 +17,7 @@ mod platform; #[path = "macos.rs"] mod platform; -#[cfg(target_os = "linux")] +#[cfg(all(unix, not(any(target_os = "android", target_os = "macos"))))] #[path = "unix.rs"] mod platform;