@@ -1064,8 +1064,8 @@ mod test {
10641064
10651065 let mut cache = DrawCache :: builder ( )
10661066 . dimensions ( 32 , 32 )
1067- . scale_tolerance ( 0.1 )
1068- . position_tolerance ( 0.1 )
1067+ . scale_tolerance ( 0.1_f32 )
1068+ . position_tolerance ( 0.1_f32 )
10691069 . pad_glyphs ( false )
10701070 . build ( ) ;
10711071 let strings = [
@@ -1107,8 +1107,8 @@ mod test {
11071107
11081108 let mut cache = DrawCache :: builder ( )
11091109 . dimensions ( 32 , 32 )
1110- . scale_tolerance ( 0.1 )
1111- . position_tolerance ( 0.1 )
1110+ . scale_tolerance ( 0.1_f32 )
1111+ . position_tolerance ( 0.1_f32 )
11121112 . pad_glyphs ( false )
11131113 . build ( ) ;
11141114
@@ -1130,8 +1130,8 @@ mod test {
11301130 let gid = font. glyph_id ( 'l' ) ;
11311131
11321132 let cache = DrawCache :: builder ( )
1133- . scale_tolerance ( 0.2 )
1134- . position_tolerance ( 0.5 )
1133+ . scale_tolerance ( 0.2_f32 )
1134+ . position_tolerance ( 0.5_f32 )
11351135 . build ( ) ;
11361136
11371137 let small = gid. with_scale_and_position ( 9.91 , point ( 0.0 , 0.0 ) ) ;
@@ -1180,8 +1180,8 @@ mod test {
11801180 fn builder_rebuild ( ) {
11811181 let mut cache = DrawCache :: builder ( )
11821182 . dimensions ( 32 , 64 )
1183- . scale_tolerance ( 0.2 )
1184- . position_tolerance ( 0.3 )
1183+ . scale_tolerance ( 0.2_f32 )
1184+ . position_tolerance ( 0.3_f32 )
11851185 . pad_glyphs ( false )
11861186 . align_4x4 ( true )
11871187 . multithread ( true )
@@ -1195,8 +1195,8 @@ mod test {
11951195
11961196 DrawCache :: builder ( )
11971197 . dimensions ( 64 , 128 )
1198- . scale_tolerance ( 0.05 )
1199- . position_tolerance ( 0.15 )
1198+ . scale_tolerance ( 0.05_f32 )
1199+ . position_tolerance ( 0.15_f32 )
12001200 . pad_glyphs ( true )
12011201 . align_4x4 ( false )
12021202 . multithread ( false )
@@ -1226,8 +1226,8 @@ mod test {
12261226
12271227 let mut cache = DrawCache :: builder ( )
12281228 . dimensions ( 31 , 25 )
1229- . scale_tolerance ( 0.1 )
1230- . position_tolerance ( 0.1 )
1229+ . scale_tolerance ( 0.1_f32 )
1230+ . position_tolerance ( 0.1_f32 )
12311231 . build ( ) ;
12321232
12331233 let glyphs = glyph_brush_layout:: Layout :: default_single_line ( ) . calculate_glyphs (
0 commit comments