Warning: Constant MULTISITE already defined in /home/pbmalartu/public_html/wp-config.php on line 107

Warning: Constant SUBDOMAIN_INSTALL already defined in /home/pbmalartu/public_html/wp-config.php on line 108

Warning: Constant DOMAIN_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 109

Warning: Constant PATH_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 110

Warning: Constant SITE_ID_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 111

Warning: Constant BLOG_ID_CURRENT_SITE already defined in /home/pbmalartu/public_html/wp-config.php on line 112

Warning: The magic method Pressbooks\Book::__wakeup() must have public visibility in /home/pbmalartu/public_html/wp-content/plugins/pressbooks/inc/class-book.php on line 62
Changing the font-size and line-height in your PDF outputs – Pressbooks User Guide ="http://www.w3.org/2000/svg" viewBox="0 0 512 512">

Special Formatting

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.

Share This Book

css.php