I am having trouble adding a monospace font to my Kobo Aura HD without embedding a monospace font in every epub that calls for it. I know this has been explained over and over, but I am not understanding, obviously. Here is what I have done:
First, I created a fonts directory in the root of my Kobo Aura HD. I copied the otf files for a font called FreeFontMono into this directory. The font filenames are called: FreeMono.otf, FreeMonoBold.otf, FreeMonoOblique.otf, and FreeMonoBoldOblique.otf (I then powered off the Aura HD and turned it back on.)
Second, in the internal CSS of the epub, I added the statement: font-family: monospace to the class called Para, which is the class used for all paragraphs in the epub.
Third, I made sure the Modify CSS feature in the Calibre KOBOTOUCH driver was enabled. In my custom kobo_extra.css file, I included the following:
@font-face {
font-family: monospace;
src: url("res:///fonts/FreeFontMono")
}
Lastly, I deleted the book off the Aura HD, and re-loaded it from Calibre. No monospace font.
I know the font has to be named exactly right for Kobo to recognize it, but I'm not sure what the "internal" font name is. Is it the "FreeFontMono"? Or "FreeMono"? Or "FreeMono.otf"?
In Jackie_W's instructions, the src: url instruction includes a subdirectory called "normal" under the "fonts" directory. I tried that too, but it didn't seem to work. If someone could just point me to where I have gone wrong, I'd appreciate it. Thanks.