ArtifexSoftware / urw-base35-fonts

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

C059 not being substituted for 'Century' #33

Open jdpipe opened 2 years ago

jdpipe commented 2 years ago

On my Ubuntu 20.04 system, this file shows up badly, apparently because "Century" is being substituted by Deja Vu Sans, even though I have the C059 font installed on my system.

john@ovo:~$ fc-match Century
DejaVuSans.ttf: "DejaVu Sans" "Book"

I wonder if this is because the fontconfig information for C059 needs to be expanded in some way? Apologies if I am asking this question in the wrong place.

fabiangreffrath commented 2 years ago

"Century" is not defined as an alias for this font. https://github.com/ArtifexSoftware/urw-base35-fonts/blob/master/fontconfig/urw-c059.conf

jdpipe commented 2 years ago

Adding the following to that file (/usr/share/fontconfig/conf.avail/urw-c059.conf on my system) had a good result, and improved the appearance of document considerably. However it is still not working exactly as expected, with some kind of 'synthetic italics' being used instead of the proper italic font, see below.

  <!-- added JP 20211103 -->
  <alias binding="same">
    <family>Century</family>
    <accept>
      <family>C059</family>
    </accept>
  </alias>

image

fabiangreffrath commented 2 years ago

Well, but strictly speaking C059 is a substitute for Century Schoolbook, and not Century, which have to be considered as being two different fonts with different metrics.