Fix fallback platforms
This commit is contained in:
parent
d01eb3cbbc
commit
9e7fa311e5
1 changed files with 18 additions and 16 deletions
|
|
@ -2,25 +2,27 @@ use unicode_script::Script;
|
||||||
|
|
||||||
use super::Font;
|
use super::Font;
|
||||||
|
|
||||||
#[cfg(not(any(macos, unix, windows)))]
|
use self::platform::*;
|
||||||
use self::other::*;
|
|
||||||
#[cfg(not(any(macos, unix, windows)))]
|
|
||||||
mod other;
|
|
||||||
|
|
||||||
#[cfg(macos)]
|
#[cfg(not(any(
|
||||||
use self::macos::*;
|
target_os = "linux",
|
||||||
#[cfg(macos)]
|
target_os = "macos",
|
||||||
mod macos;
|
target_os = "windows",
|
||||||
|
)))]
|
||||||
|
#[path = "other.rs"]
|
||||||
|
mod platform;
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(target_os = "macos")]
|
||||||
use self::unix::*;
|
#[path = "macos.rs"]
|
||||||
#[cfg(unix)]
|
mod platform;
|
||||||
mod unix;
|
|
||||||
|
|
||||||
#[cfg(windows)]
|
#[cfg(target_os = "linux")]
|
||||||
use self::windows::*;
|
#[path = "unix.rs"]
|
||||||
#[cfg(windows)]
|
mod platform;
|
||||||
mod windows;
|
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
#[path = "windows.rs"]
|
||||||
|
mod platform;
|
||||||
|
|
||||||
pub struct FontFallbackIter<'a> {
|
pub struct FontFallbackIter<'a> {
|
||||||
fonts: &'a [Font<'a>],
|
fonts: &'a [Font<'a>],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue