Skip to content

Fallback fonts not sized properly #296

Description

@UtkarshVerma

I have an alias in my ~/.config/fontconfig/fonts.xml like this:

    <alias>
        <family>monospace</family>
        <prefer>
            <family>Comic Code Ligatures</family>
            <family>Symbols Nerd Font</family>
        </prefer>
    </alias>

This is simply setting Nerd Font symbols as a fallback in case the glyphs aren't found in my main monospace font, i.e. Comic Code Ligatures.

This works properly in st, however, dwm fails to size the fallback font properly and the glyphs are rendered very small.

Here are a few screenshots.

static const char *fonts[] = { "monospace-12", "Symbols Nerd Font-14" };
image

static const char *fonts[] = { "monospace-12" };
image

These is the output of st using the same font family without FONT2 patch:
image

If you want to test this quickly, you can use my builds of st, dwm and my fontconfig:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions