@@ -44,17 +44,19 @@ fn always_normal(images: Vec<InputImage>) -> Result<Vec<u8>, Error> {
4444 canvas. clear ( Color :: WHITE ) ;
4545
4646 canvas
47- . draw_text_area (
47+ . draw_text_area_auto_font_size (
4848 IRect :: from_ltrb ( 20 , h1 + 5 , 280 , frame_h - 5 ) ,
4949 "要我一直" ,
50+ 20.0 ,
5051 60.0 ,
5152 text_params ! ( text_align = TextAlign :: Right ) ,
5253 )
5354 . unwrap ( ) ;
5455 canvas
55- . draw_text_area (
56+ . draw_text_area_auto_font_size (
5657 IRect :: from_ltrb ( 400 , h1 + 5 , 480 , frame_h - 5 ) ,
5758 "吗" ,
59+ 20.0 ,
5860 60.0 ,
5961 text_params ! ( text_align = TextAlign :: Left ) ,
6062 )
@@ -97,17 +99,19 @@ fn always_always(images: Vec<InputImage>, loop_: bool) -> Result<Vec<u8>, Error>
9799 canvas. clear ( Color :: WHITE ) ;
98100
99101 canvas
100- . draw_text_area (
102+ . draw_text_area_auto_font_size (
101103 IRect :: from_ltrb ( 20 , img_big_h + 5 , 280 , frame_h - 5 ) ,
102104 "要我一直" ,
105+ 20.0 ,
103106 60.0 ,
104107 text_params ! ( text_align = TextAlign :: Right ) ,
105108 )
106109 . unwrap ( ) ;
107110 canvas
108- . draw_text_area (
111+ . draw_text_area_auto_font_size (
109112 IRect :: from_ltrb ( 400 , img_big_h + 5 , 480 , frame_h - 5 ) ,
110113 "吗" ,
114+ 20.0 ,
111115 60.0 ,
112116 text_params ! ( text_align = TextAlign :: Left ) ,
113117 )
0 commit comments