Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with urw-d050000l.conf #27

Open
timsat opened this issue Oct 17, 2019 · 11 comments
Open

Issue with urw-d050000l.conf #27

timsat opened this issue Oct 17, 2019 · 11 comments

Comments

@timsat
Copy link

timsat commented Oct 17, 2019

Hi guys,
D050000l by some reason is preferred font for fantasy family. According to https://www.w3.org/Style/Examples/007/fonts.en.html this family used for decorative fonts, and we have this:

<alias>
<family>Impact</family>
<default><family>fantasy</family></default>
</alias>

somewhere in fontconfig and this:

        <alias>
                <family>fantasy</family>
                <prefer>
                        <family>Impact</family>
                        <family>Copperplate Gothic Std</family>
                        <family>Cooper Std</family>
                        <family>Bauhaus Std</family>
                </prefer>
        </alias>

in 60-latin.conf,
so installing urw-base35-fonts results in incorrect subtitution Impact -> D050000l.
UPD: I do not have Impact installed, but still the following behavior is very confusing:

[admin@check-centos7-new conf.d]$ fc-match impact
D050000L.otf: "D050000L" "Regular"

Am i missing something?

@fabiangreffrath
Copy link
Contributor

fabiangreffrath commented Oct 17, 2019

If you install the urw-d050000l.conf fontconfig file with a priority value higher than 60 (i.e. with a priority lower than the fontconfig files with a priority value of 60) - as recommended in fontconfig/README-md - then this shouldn't happen.

@timsat
Copy link
Author

timsat commented Oct 17, 2019

thanks @fabiangreffrath! Are you saying this issue has been introduced by maintainers? Because i installed the package from CentOS repo.

@fabiangreffrath
Copy link
Contributor

No, the CentOS package seems to provide the file with the right priority. Try running fc-match -a fantasy | head and see if D050000L appears before Impact.

@timsat
Copy link
Author

timsat commented Oct 17, 2019

Yes, it appeared before

D050000L.otf: "D050000L" "Regular"
D050000L.t1: "D050000L" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSansCondensed.ttf: "DejaVu Sans" "Condensed"
DejaVuSans-ExtraLight.ttf: "DejaVu Sans" "ExtraLight"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
DejaVuSansCondensed-Bold.ttf: "DejaVu Sans" "Condensed Bold"
DejaVuSans-Oblique.ttf: "DejaVu Sans" "Oblique"
DejaVuSansCondensed-Oblique.ttf: "DejaVu Sans" "Condensed Oblique"
DejaVuSans-BoldOblique.ttf: "DejaVu Sans" "Bold Oblique"

this is what i have in /etc/fonts/conf.d

10-hinting-slight.conf
10-scale-bitmap-fonts.conf
20-unhint-small-dejavu-sans.conf
20-unhint-small-vera.conf
25-no-bitmap-fedora.conf
25-unhint-nonlatin.conf
30-metric-aliases.conf
30-urw-aliases.conf
40-nonlatin.conf
45-generic.conf
45-latin.conf
49-sansserif.conf
50-user.conf
51-local.conf
57-dejavu-sans.conf
60-generic.conf
60-latin.conf
61-urw-bookman.conf
61-urw-c059.conf
61-urw-d050000l.conf
61-urw-fallback-backwards.conf
61-urw-gothic.conf
61-urw-nimbus-mono-ps.conf
61-urw-nimbus-roman.conf
61-urw-nimbus-sans.conf
61-urw-p052.conf
61-urw-standard-symbols-ps.conf
61-urw-z003.conf
65-fonts-persian.conf
65-nonlatin.conf
69-unifont.conf
80-delicious.conf
90-synthetic.conf
README

I do not have Impact installed, but still documents which use Impact shouldn't be rendered with D050000l

@timsat
Copy link
Author

timsat commented Oct 17, 2019

@fabiangreffrath
Copy link
Contributor

I do not have Impact installed, but still documents which use Impact shouldn't be rendered with D050000l

That's a completely different issue then.

However, I agree that a symbols font shouldn't be registered as an alternative for "fantasy" fonts.

@timsat
Copy link
Author

timsat commented Oct 17, 2019

thanks @fabiangreffrath. I updated the description to avoid further confusion.

@timsat
Copy link
Author

timsat commented Oct 24, 2019

Any other comments, guys, expectations probably?

@pstray
Copy link

pstray commented Oct 26, 2021

I still see D050000L as an alias for fantasy. D050000L is clearly not a font that should be categorized as such.

@rikylescak
Copy link

Hi guys, first 2 definitions in fontconfig/urw-d050000l.conf are making D050000L preferred font for fantasy family.
My results after the removal:

$ fc-match Dingbats
D050000L.otf: "D050000L" "Regular"
$ fc-match fantasy
DejaVuSans.ttf: "DejaVu Sans" "Book"
$ fc-match impact
DejaVuSans.ttf: "DejaVu Sans" "Book"

@fabiangreffrath
Copy link
Contributor

@chris-liddell These two aliases should probably get removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants