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

C059 not being substituted for 'Century' #33

Open
jdpipe opened this issue Nov 2, 2021 · 3 comments
Open

C059 not being substituted for 'Century' #33

jdpipe opened this issue Nov 2, 2021 · 3 comments

Comments

@jdpipe
Copy link
Contributor

jdpipe commented Nov 2, 2021

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
Copy link
Contributor

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

@jdpipe
Copy link
Contributor Author

jdpipe commented Nov 2, 2021

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
Copy link
Contributor

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.

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

2 participants