diff options
-rw-r--r-- | st.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3472,6 +3472,9 @@ xloadfonts(char *fontstr, double fontsize) | |||
3472 | if (usedfontsize < 0) { | 3472 | if (usedfontsize < 0) { |
3473 | FcPatternGetDouble(dc.font.match->pattern, | 3473 | FcPatternGetDouble(dc.font.match->pattern, |
3474 | FC_PIXEL_SIZE, 0, &fontval); | 3474 | FC_PIXEL_SIZE, 0, &fontval); |
3475 | FcPatternAddDouble(pattern, FC_PIXEL_SIZE, fontval); | ||
3476 | if (xloadfont(&dc.font, pattern)) | ||
3477 | die("st: can't open font %s\n", fontstr); | ||
3475 | usedfontsize = fontval; | 3478 | usedfontsize = fontval; |
3476 | if (fontsize == 0) | 3479 | if (fontsize == 0) |
3477 | defaultfontsize = fontval; | 3480 | defaultfontsize = fontval; |