Re: [dev] [st][PATCH] Use XftFontMatch in place of FcFontMatch.

From: Amer <amerlyq_AT_gmail.com>
Date: Sat, 28 May 2016 03:08:48 +0300

Hi Mark,

After applying your patch, fontconfig fallbacks don't work for me
anymore. Only first/main font is scaled, and all consequent aren't.

st/config.def.h
    static char font[] = "monospace-9.6";

~/.config/fontconfig/fonts.conf
    ...
    <alias>
        <family>monospace</family>
        <prefer>
            <family>Source Code Pro</family>
            <family>DejaVu Sans Mono</family>
            <family>Symbola</family>
        </prefer>
    </alias>
    ...

Therefore most of symbols, all asian widechar and bold non-ascii
flavours are microscopical small on HiDPI being not scaled at all.
(I suppose this difference will be rather imperceptible on non-HiDPI)

Maybe, my fontconfig isn't truly correct, as I experienced some
other intermittent bugs with st fonts.
After all I used somewhat messed guide from:

https://eev.ee/blog/2015/05/20/i-stared-into-the-fontconfig-and-the-fontconfig-stared-back-at-me/

Therefore check aforementioned cases on your setup, please.
And ascertain if relative size for fallback works or not.


On Mon, May 09, 2016 at 10:11:26AM +0200, Mark Edgar wrote:
> This change allows st to correctly render fonts given in point sizes,
> bringing its behavior in line with other software: dwm, dmenu, tabbed,
> etc:
>
> FC_DEBUG=1 st -f Terminus:size=10
>
> -Mark
Received on Sat May 28 2016 - 02:08:48 CEST

This archive was generated by hypermail 2.3.0 : Sat May 28 2016 - 02:12:09 CEST