|
@ -2226,7 +2226,12 @@ xloadfonts(char *fontstr, int fontsize) { |
|
|
FcResult result; |
|
|
FcResult result; |
|
|
double fontval; |
|
|
double fontval; |
|
|
|
|
|
|
|
|
pattern = FcNameParse((FcChar8 *)fontstr); |
|
|
|
|
|
|
|
|
if(fontstr[0] == '-') { |
|
|
|
|
|
pattern = XftXlfdParse(fontstr, False, False); |
|
|
|
|
|
} else { |
|
|
|
|
|
pattern = FcNameParse((FcChar8 *)fontstr); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if(!pattern) |
|
|
if(!pattern) |
|
|
die("st: can't open font %s\n", fontstr); |
|
|
die("st: can't open font %s\n", fontstr); |
|
|
|
|
|
|
|
|