Skip to content

Commit 5aa347f

Browse files
committed
clean up and adjust feature gates to pass tests
1 parent 4f5fec3 commit 5aa347f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

plotters/src/style/font/ab_glyph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct InvalidFont {
2222
///
2323
/// The `bytes` parameter should be the complete contents
2424
/// of an OpenType font file, like:
25-
/// ```
25+
/// ```ignore
2626
/// include_bytes!("FiraGO-Regular.otf")
2727
/// ```
2828
pub fn register_font(name: &str, bytes: &'static [u8]) -> Result<(), InvalidFont> {

plotters/src/style/font/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use ttf::FontDataInternal;
2222
mod ab_glyph;
2323
#[cfg(all(
2424
not(target_arch = "wasm32"), not(target_os = "wasi"),
25-
feature = "ab_glyph_"
25+
feature = "ab_glyph_", not(feature = "ttf")
2626
))]
2727
use self::ab_glyph::FontDataInternal;
2828
#[cfg(all(
@@ -31,8 +31,6 @@ use self::ab_glyph::FontDataInternal;
3131
))]
3232
pub use self::ab_glyph::register_font;
3333

34-
#[cfg(all(not(target_arch = "wasm32"), not(feature = "ttf"), not(feature = "ab_glyph_")))]
35-
mod naive;
3634
#[cfg(all(
3735
not(all(target_arch = "wasm32", not(target_os = "wasi"))),
3836
not(feature = "ttf"), not(feature = "ab_glyph_")

0 commit comments

Comments
 (0)