View Single Post
Old 10-08-2011, 04:40 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,109
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ndr View Post
Hi, I'm having issues converting mobi file to another format. I can't make calibre to retain font styles.
I've enabled the debug mode, and the input file looks like this:
Code:
<p class="calibre_53"><font face="Times New Roman" color="gray"><span class="bold">Text1</span></font></p>
<p class="calibre_137"><font face="sans-serif">Text2</font></p>
but after conversion (to htmlz, inline) it becomes:
Code:
<p style="display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 15%; text-indent: 1em"><span style="color: gray"><span style="font-weight: bold">Text1</span>
</span></p>
<p style="display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 1%; text-align: center; text-indent: 0"><span>Text2</span></p>
Why the "font face" is ignored? How can I prevent this?

Thanks in advance.
ndr
I don't think it is correct usage .You have 2 words font and face
Example from W3Schools
<p style="font-family:arial;color:red;font-size:20px;">A paragraph.</p>
theducks is offline   Reply With Quote