It’s time for us to lift the curtain on some major changes here at Pressbooks! We’ve spent a lot of time over the last month doing some much-needed maintenance across the platform, including theme improvements and changes to the user experience for institutions using single-sign on technology. These past weeks also included important work on
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.
- Bradbury Color
- 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 email@example.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:
- Go to “Edit CSS” and make sure you are in the PDF stylesheet (indicated at the top of the page)
- Find the body line height setting, which will look something like this:
font-family: “Cardo”, “Times New Roman”, serif;
line-height: 1.1; }
- If you are using Luther, you will also need to locate this section, just below the one indicated above:
text-align: justify; }
- Change the line-height in accordance with this table:
- 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 firstname.lastname@example.org and we will help you figure it out.