View Single Post
Old 12-10-2013, 10:52 AM   #2
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,528
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Symmetria View Post
Hi everyone.

I am working on a book that needs to have some of its sections displayed in sans-serif font.

I have set the following rule for these kind of sections; nice and generic.
{font-family: sans-serif;}
The epub version of the book works as intended.

When I preview the file in the Kindle Previewer, however, everything is in serif font (except for some other parts of the book, that needed to be in monospace({font-family: monospace;}) , which are, curiously, displaying correctly)

What is the deal with kindlegen generated .mobi files and the sans-serif font family?
Do they simply not work or is there some trick to make the kindlegen not disregard the CSS rule when it compiles the book from .epub?

.mobi files in question are generated using the up-to-date Kindle Previewer's built in kindlegen functionality.

Thanks
The ".mobi" file generated by Kindle Previewer contains two types of files: a .kf8 (in order to be read for the modern models of Kindles) and a "properly" .mobi (the old kind of mobi) in order to be read for Kindle DX and the older Kindle devices. When in Kindle Previewer you enabled the Kindle Fire and Kindle Paperwhite preview, you are watching the ".kf8 part" of the .mobi file AND YOU SHOULD SEE the sans-serif font; on the other hand, when you enable the Kindle DX preview, you are watching the ".mobi part" of the .mobi file AND HERE YOU CAN'T HAVE the sans-serif font. Probably you are previewing your eBook with the Kindle DX preview; try enabling Kindle Fire or Paperwhite and tell us if you can see the sans-serif font.
RbnJrg is offline   Reply With Quote