[UPDATED] Temporary Issue with Cardo Font in PDF Exports

This issue has now been resolved, but some users may need to make a small change if they are using Custom CSS with any of the affected themes. See instructions on how to fix the problem at the end of this post.

We’ve recently encountered an issue with our PDF conversion tool that will temporarily impact books that use the Cardo font in PDF. If you have recently noticed a change in page count, this is the culprit, but we have isolated the issue and are working on a solution.

To give some background, Pressbooks uses third-party PDF-rendering software (PrinceXML). The latest Prince update resulted in a change in rendering calculations for some TrueType fonts (including Cardo). Here are some more details:

The problem: The line-height has changed in books using a theme with the Cardo body font.

Affected Themes: 

  • Luther
  • Atwood
  • Eliot
  • Bradbury Color
  • Kolbert
  • Leguin
  • Lovecraft
  • Vonnegut
  • Vonnegut Color

The impact: Books using the above themes exported after October 2016 will have a different line-height and therefore different total number of pages that exports of the same book done before October 2016.

What we are doing: We are in communication with PrinceXML to see if there is a fix on their end. In parallel, we are testing adjusting the line-heights on affected themes in CSS, which should solve the problem.

When we’ll be finished: Likely not before next week (end of November), but should be resolved within two weeks.

We apologize if this has an impact on any planned reprints. If you have a print run that will be affected by this issue, we should be able to implement a temporary manual workaround — please contact us to arrange this.

We will keep you updated as we progress on fixing the issue, but if you have any questions or concerns, please let us know by emailing us at support@pressbooks.com.

UPDATE: How to fix your line height if you’re using custom CSS

The issue identified has now been resolved, and anyone using the standard versions of the themes above shouldn’t notice any changes. However, if you have used the custom CSS option with any of the affected themes, you will need to update the line height in your PDF stylesheet. Here’s how to do so:

  1. Go to “Edit CSS” and make sure you are in the PDF stylesheet (indicated at the top of the page)
  2. Find the body line height setting, which will look something like this:

body {
font-family: “Cardo”, “Times New Roman”, serif;
font-size: 10pt;
line-height: 1.1; }

  1. If you are using Luther, you will also need to locate this section, just below the one indicated above:

p {
margin-bottom: 0;
line-height: 1.2;
text-align: justify; }

  1. Change the line-height in accordance with this table:


  1. Save and export to see your changes.

If you run into any trouble with this process, or have a line height that isn’t listed on this table, let us know at support@pressbooks.com and we will help you figure it out.

Related Posts

Pressbooks.com Scheduled Maintenance: August 9th, 5 – 7 a.m. EST

We intend to perform scheduled maintenance (required database updates) on the server hosting Pressbooks.com between 5 a.m.-7 a.m. ET on Sunday, August 9.  Pressbooks.com will be unavailable at some points during

Read More

Welcome Leigh Kinch-Pedrosa, Pressbooks’ New Head of Marketing & Communications

We’re delighted to introduce you to Leigh Kinch-Pedrosa, Pressbooks’ new head of marketing and communications!  Prior to joining Pressbooks earlier this month, Leigh worked for the past two years with

Read More

Race, Pandemics, and the Work We Choose To Do

Way back in mid-March, we closed our office as a precautionary measure in response to COVID-19, and since then I have been planning (and planning and planning) to write about

Read More