dumol / PixelPerfect

Pixel-perfect font rendering under Wayland and X.org
MIT License
16 stars 1 forks source link

Using <accept> for aliases doesn't work with Chrome. #1

Open dumol opened 3 years ago

dumol commented 3 years ago

As per the font-conf manual, using <accept> for an alias means appending the acceptable families after the matching <family>. An example:

    <alias binding="same">
        <family>Menlo</family>
        <accept>
            <family>Liberation Mono</family>
        </accept>
    </alias>

The above would allow, for example, to have Menlo used if present. Liberation Mono would only be used if Menlo is missing.

However, that doesn't work on Chromium, where prefer seems to be required to have the alias working at all:

    <alias binding="same">
        <family>Menlo</family>
        <prefer>
            <family>Liberation Mono</family>
        </prefer>
    </alias>

But this means the original Menlo will never be used, even if present.

dumol commented 9 months ago

Still an issue with Chrome version 119.0.6045.199 (Official Build).