commit 424202798b02554092ba84dd59fb7b79b59b7b75 from: ian@remmler.org via: Roberto E. Vargas Caballero date: Mon Nov 14 18:27:55 2016 UTC Initial font size issue. Hi, When I specify a font by point size (I'm using "Inconsolata:size=12"), characters that are substituted from another font because they are not in the main one appear too small. Doing a zoom reset fixes it. For example: Before: http://i.imgur.com/G4Mfv4X.png After: http://i.imgur.com/PMDhfQA.png I found that adding the pixel size (acquired from the initial font load) to the pattern then reloading the font fixes the problem. I'm not sure if this is a proper fix, though. commit - 3ca7249c8685a9ff2d8ce23273fe0313b5804473 commit + 424202798b02554092ba84dd59fb7b79b59b7b75 blob - 0980082817afd792eb1fd00d15f4bd9ac8acda48 blob + e50e8848c50ebabc5e64f451123e001dc2fcc68a --- st.c +++ st.c @@ -3472,6 +3472,9 @@ xloadfonts(char *fontstr, double fontsize) if (usedfontsize < 0) { FcPatternGetDouble(dc.font.match->pattern, FC_PIXEL_SIZE, 0, &fontval); + FcPatternAddDouble(pattern, FC_PIXEL_SIZE, fontval); + if (xloadfont(&dc.font, pattern)) + die("st: can't open font %s\n", fontstr); usedfontsize = fontval; if (fontsize == 0) defaultfontsize = fontval;