Bug 1807696 - config file precedence of 50 overrides local.conf
Summary: config file precedence of 50 overrides local.conf
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: bitstream-vera-fonts
Version: 32
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Nicolas Mailhot
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-27 00:25 UTC by Adam Williamson
Modified: 2020-02-27 06:51 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-02-27 06:51:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Adam Williamson 2020-02-27 00:25:46 UTC
The bitstream-vera-fonts packages were recently given fontconfig config snippets with a precedence of 50. Trouble is, this seems to override customizations in local.conf, because the snippet that loads local.conf has precedence 51. So even though I had this in local.conf:

        <alias>
                <family>sans-serif</family>
                <prefer>
                        <family>Cantarell</family>
                        <family>Droid Sans</family>
                        <family>Bitstream Vera Sans</family>
                        <family>DejaVu Sans</family>
                        <family>Verdana</family>
                        <family>Arial</family>
                        <family>Albany AMT</family>
                        <family>Luxi Sans</family>
                        <family>Nimbus Sans L</family>
                        <family>Helvetica</family>
                        <family>Lucida Sans Unicode</family>
                        <family>BPG Glaho International</family> <!-- lat,cyr,arab,geor -->
                        <family>Tahoma</family> <!-- lat,cyr,greek,heb,arab,thai -->
                </prefer>
        </alias>

I was getting this from fontconfig:

[root@adam conf.d]# fc-match "sans"
Vera.ttf: "Bitstream Vera Sans" "Regular"

because 50-bitstream-vera-sans-fonts.conf has this:

  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Bitstream Vera Sans</family>
    </prefer>
  </alias>

if I moved 50-bitstream-vera-sans-fonts.conf to 52-bitstream-vera-sans-fonts.conf , and ran fc-cache, fontconfig would give me Cantarell.

I've now just replaced my local.conf with a 10- precedence config snippet, but still this seems wrong, I think maybe that specific <family><prefer> bit should be split out into a file with 60ish precedence?

Comment 1 Nicolas Mailhot 2020-02-27 06:40:18 UTC
Ha, that’s a side effect of normalizing the Vera packaging so it behaves like other font packages. I'll move it a tad lower.

You can explain in
https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/200

That Fedora packages would like a fontconfig syntax with less priorization side-effects

Comment 2 Nicolas Mailhot 2020-02-27 06:51:06 UTC
Should be building now in F32 (updates) and F33


Note You need to log in before you can comment on or make changes to this bug.