@@ -152,16 +152,13 @@ impl Renderer {
152152 square. c
153153 } ;
154154
155- let font_attrs = match (
156- flags. contains ( Flags :: ITALIC ) ,
157- flags. contains ( Flags :: BOLD_ITALIC ) ,
158- flags. contains ( Flags :: BOLD ) ,
159- ) {
160- ( true , _, _) => ( Stretch :: NORMAL , Weight :: NORMAL , Style :: Italic ) ,
161- ( _, true , _) => ( Stretch :: NORMAL , Weight :: BOLD , Style :: Italic ) ,
162- ( _, _, true ) => ( Stretch :: NORMAL , Weight :: BOLD , Style :: Normal ) ,
163- _ => ( Stretch :: NORMAL , Weight :: NORMAL , Style :: Normal ) ,
164- } ;
155+ let font_attrs =
156+ match ( flags. contains ( Flags :: BOLD ) , flags. contains ( Flags :: ITALIC ) ) {
157+ ( true , true ) => ( Stretch :: NORMAL , Weight :: BOLD , Style :: Italic ) ,
158+ ( true , false ) => ( Stretch :: NORMAL , Weight :: BOLD , Style :: Normal ) ,
159+ ( false , true ) => ( Stretch :: NORMAL , Weight :: NORMAL , Style :: Italic ) ,
160+ _ => ( Stretch :: NORMAL , Weight :: NORMAL , Style :: Normal ) ,
161+ } ;
165162
166163 if flags. contains ( Flags :: INVERSE ) {
167164 std:: mem:: swap ( & mut background_color, & mut foreground_color) ;
0 commit comments