File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ pub struct InvalidFont {
22
22
///
23
23
/// The `bytes` parameter should be the complete contents
24
24
/// of an OpenType font file, like:
25
- /// ```
25
+ /// ```ignore
26
26
/// include_bytes!("FiraGO-Regular.otf")
27
27
/// ```
28
28
pub fn register_font ( name : & str , bytes : & ' static [ u8 ] ) -> Result < ( ) , InvalidFont > {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ use ttf::FontDataInternal;
22
22
mod ab_glyph;
23
23
#[ cfg( all(
24
24
not( target_arch = "wasm32" ) , not( target_os = "wasi" ) ,
25
- feature = "ab_glyph_"
25
+ feature = "ab_glyph_" , not ( feature = "ttf" )
26
26
) ) ]
27
27
use self :: ab_glyph:: FontDataInternal ;
28
28
#[ cfg( all(
@@ -31,8 +31,6 @@ use self::ab_glyph::FontDataInternal;
31
31
) ) ]
32
32
pub use self :: ab_glyph:: register_font;
33
33
34
- #[ cfg( all( not( target_arch = "wasm32" ) , not( feature = "ttf" ) , not( feature = "ab_glyph_" ) ) ) ]
35
- mod naive;
36
34
#[ cfg( all(
37
35
not( all( target_arch = "wasm32" , not( target_os = "wasi" ) ) ) ,
38
36
not( feature = "ttf" ) , not( feature = "ab_glyph_" )
You can’t perform that action at this time.
0 commit comments