View Single Post
Old 02-09-2013, 11:14 PM   #18
DuckieTigger
Wizard
DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.DuckieTigger ought to be getting tired of karma fortunes by now.
 
DuckieTigger's Avatar
 
Posts: 1,611
Karma: 27870196
Join Date: Dec 2011
Device: PW1, Galaxy S5, Galaxy Note 4, Nexus 7 (2013), Nexus 10
Quote:
Originally Posted by cubemike99 View Post
Much obliged. Now if could only get those monospace fonts for my programming books...
Depends on what you want to do. The PW comes with a mono-spaced font built in. No need to even install any fonts.

All you need to do is put the monospaced sections into <code> .. </code> blocks in your html inside the book. That can be inside epub, kf8, or plain html. Convert that epub/html into mobi or azw3, or tweak a azw3 in calibre. If you need more fancy things / different fonts, you need to use css stylesheets and call for a specific font by name that you already installed or embed into the book.

This html:
Code:
<html><head><title>Test</title></head><body>
<h1 align=center>Testing &lt;code&gt;</h1>
<p align=justify>Normal font: <code>monospaced</code>. Normal again.</p>
<p align=left><code> 0123456789 ABCDEFGHIJ this is all monospaced<br>new line.</code></p>
</body></html>
Drag that into into calibre, it will create a book of type zip. Convert that book from zip to mobi (I chose old mobi), and send it to your PW. It will come out like this (click on image to enlarge screenshot from PW):

Click image for larger version

Name:	monospace.png
Views:	59
Size:	12.6 KB
ID:	101010
DuckieTigger is offline   Reply With Quote