@ -2444,20 +2444,18 @@ xloadfonts(char *fontstr, int fontsize) {
xw . ch = dc . font . height ;
xw . ch = dc . font . height ;
FcPatternDel ( pattern , FC_SLANT ) ;
FcPatternDel ( pattern , FC_SLANT ) ;
FcPatternDel ( pattern , FC_WEIGHT ) ;
FcPatternAddInteger ( pattern , FC_SLANT , FC_SLANT_ITALIC ) ;
FcPatternAddInteger ( pattern , FC_SLANT , FC_SLANT_ROMAN ) ;
if ( xloadfont ( & dc . ifont , pattern ) )
FcPatternAddInteger ( pattern , FC_WEIGHT , FC_WEIGHT_BOLD ) ;
if ( xloadfont ( & dc . bfont , pattern ) )
die ( " st: can't open font %s \n " , fontstr ) ;
die ( " st: can't open font %s \n " , fontstr ) ;
FcPatternDel ( pattern , FC_SLAN T ) ;
FcPatternDel ( pattern , FC_WEIGH T ) ;
FcPatternAddInteger ( pattern , FC_SLANT , FC_SLANT_ITALIC ) ;
FcPatternAddInteger ( pattern , FC_WEIGHT , FC_WEIGHT_BOLD ) ;
if ( xloadfont ( & dc . ibfont , pattern ) )
if ( xloadfont ( & dc . ibfont , pattern ) )
die ( " st: can't open font %s \n " , fontstr ) ;
die ( " st: can't open font %s \n " , fontstr ) ;
FcPatternDel ( pattern , FC_WEIGH T ) ;
FcPatternDel ( pattern , FC_SLAN T ) ;
FcPatternAddInteger ( pattern , FC_WEIGHT , FC_WEIGHT_MEDIUM ) ;
FcPatternAddInteger ( pattern , FC_SLANT , FC_SLANT_ROMAN ) ;
if ( xloadfont ( & dc . i font, pattern ) )
if ( xloadfont ( & dc . b font, pattern ) )
die ( " st: can't open font %s \n " , fontstr ) ;
die ( " st: can't open font %s \n " , fontstr ) ;
FcPatternDestroy ( pattern ) ;
FcPatternDestroy ( pattern ) ;