59 Changing the font-size and line-height in your PDF outputs

You might want the font-size in your book to be smaller, or larger. You can adjust this using the Custom CSS feature. (Please read this first!).

In your Custom CSS, PDF version, find the following:

body {
font-size: 11pt;
line-height: 1.4;

Font-size is the size of the typeface, in “points.”

Line-height (called “leading” in traditional typography), is the distance between the baselines of successive lines of type, or the space between the lines of type. Line-height is expressed as a multiple of the size of the font, so line-height: 1.2 means: “1.2 times the height of the font.”

Decreasing Your Font-size

So, if you want to decrease the page-count of your book, you would reduce the font-size, and line-height. Your edited CSS would look like this:

body {
font-size: 10pt;
line-height: 1.2;

Increasing Your Font-size

On the other hand, if you want to make a “large print” book, or just increase legibility, you might increase the font-size, as well as the line-height. Your edited CSS would look like this:

body {
font-size: 12pt;
line-height: 1.5;

Note 1:
Neither font-size nor line-height should be changed in Ebook CSS, since the user/reader should be able to decide font-sizes for themselves.

NOTE: We have recently introduced a new method for setting your body font size and line height in select themes. For more, see our guide chapter on the changes.


Icon for the Creative Commons Attribution 4.0 International License

Pressbooks User Guide Copyright © 2012 by Book Oven Inc. (Pressbooks.com) is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book