ArtifexSoftware / urw-base35-fonts

Repo for URW++ base 35 font set
Other
93 stars 16 forks source link

Issue with urw-d050000l.conf #27

Open timsat opened 4 years ago

timsat commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

fabiangreffrath commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Looks like it is not a new issue: https://www.reddit.com/r/SteamPlay/comments/9a7mon/making_a_open_source_equavilent_to_corefonts/e4vy3dm/

fabiangreffrath commented 4 years ago

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 commented 4 years ago

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

timsat commented 4 years ago

Any other comments, guys, expectations probably?

pstray commented 2 years ago

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

rikylescak commented 2 years ago

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 commented 2 years ago

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