1
- #![ cfg_attr( target_os = "axle" , no_std) ]
1
+ #![ cfg_attr( any ( target_os = "axle" , feature = "no_std" ) , no_std) ]
2
2
#![ feature( core_intrinsics) ]
3
3
#![ feature( slice_ptr_get) ]
4
4
#![ feature( format_args_nl) ]
@@ -17,19 +17,22 @@ mod render_context;
17
17
18
18
pub use crate :: glyphs:: { GlyphRenderDescription , GlyphRenderInstructions } ;
19
19
pub use crate :: metrics:: GlyphMetrics ;
20
- pub use crate :: render:: { render_antialiased_glyph_onto, render_char_onto, render_glyph_onto} ;
20
+ pub use crate :: render:: {
21
+ render_antialiased_glyph_onto, render_char_onto, render_glyph_onto, rendered_string_size,
22
+ } ;
21
23
pub use crate :: render_context:: FontRenderContext ;
22
- use agx_definitions:: Rect ;
24
+ use agx_definitions:: { Rect , Size } ;
23
25
use alloc:: collections:: BTreeMap ;
24
26
use alloc:: string:: { String , ToString } ;
25
27
use alloc:: vec:: Vec ;
26
28
use core:: fmt:: { Display , Formatter } ;
27
29
use parser:: FontParser ;
28
30
29
31
use crate :: hints:: FunctionDefinition ;
30
- #[ cfg( target_os = "axle" ) ]
32
+ use crate :: metrics:: FontGlobalLayoutMetrics ;
33
+ #[ cfg( any( target_os = "axle" , feature = "no_std" ) ) ]
31
34
pub ( crate ) use axle_rt:: { print, println} ;
32
- #[ cfg( not( target_os = "axle" ) ) ]
35
+ #[ cfg( not( any ( target_os = "axle" , feature = "no_std" ) ) ) ]
33
36
pub ( crate ) use std:: { print, println} ;
34
37
35
38
#[ derive( Debug , Copy , Clone , PartialEq , Eq , PartialOrd , Ord ) ]
0 commit comments