diff options
Diffstat (limited to 'src/style/font/mod.rs')
-rw-r--r-- | src/style/font/mod.rs | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/src/style/font/mod.rs b/src/style/font/mod.rs index 305978f..d80ee28 100644 --- a/src/style/font/mod.rs +++ b/src/style/font/mod.rs @@ -18,13 +18,35 @@ mod ttf; use ttf::FontDataInternal; #[cfg(all( - not(all(target_arch = "wasm32", not(target_os = "wasi"))), + not(target_arch = "wasm32"), + not(target_os = "wasi"), + feature = "ab_glyph" +))] +mod ab_glyph; +#[cfg(all( + not(target_arch = "wasm32"), + not(target_os = "wasi"), + feature = "ab_glyph" +))] +pub use self::ab_glyph::register_font; +#[cfg(all( + not(target_arch = "wasm32"), + not(target_os = "wasi"), + feature = "ab_glyph", not(feature = "ttf") ))] +use self::ab_glyph::FontDataInternal; + +#[cfg(all( + not(all(target_arch = "wasm32", not(target_os = "wasi"))), + not(feature = "ttf"), + not(feature = "ab_glyph") +))] mod naive; #[cfg(all( not(all(target_arch = "wasm32", not(target_os = "wasi"))), - not(feature = "ttf") + not(feature = "ttf"), + not(feature = "ab_glyph") ))] use naive::FontDataInternal; |