Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-20-2008, 05:49 PM   #1
FizzyWater
You kids get off my lawn!
FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.
 
FizzyWater's Avatar
 
Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
Calibre ... or bad HTML?

Up until recently, I've just made RTF files for my Sony Reader. But I really like to have the book covers (and any other images that might be in the file) displayed. So I finally started playing with Calibre.

I've been able to create LRFs with embedded Georgia font, from HTML code created by Mobipocket Creator - from my RTFs! Looks very nice. Reads very nice.

But I find I still prefer a san-serif font when reading "screen" rather than "paper". When I use the same method to embed Verdana, my Sony displays the Verdana bold and italic (and bold-italic) just fine, but displays the regular text as a serif-font (probably Times New Roman). When I look at the same LRF in the Calibre viewer, it displays ALL Verdana - plain text or bold, but no italics.

I've attached the sample files below. By the way, I misspelled embed in the attachments and am not anal enough to go back and fix it there. Sorry!
Attached Files
File Type: rtf Test of imbedded Verdana font.rtf (21.9 KB, 523 views)
File Type: zip Test of embedded Verdana font.zip (3.5 KB, 452 views)
File Type: lrf Test of embedded Verdana font - FizzyWater.lrf (395.6 KB, 454 views)
FizzyWater is offline   Reply With Quote
Old 07-20-2008, 06:57 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,397
Karma: 23798586
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The whole situation with embedded fonts in LRF is a bit of a mess at the moment and I dont have the time to sort it out. You can get sans serif fonts without embedding by using the --override-css option. Something like

--override-css "p { font-family: sans}" should do the trick
kovidgoyal is online now   Reply With Quote
Advert
Reply

Tags
calibre


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre Recipe HTML content differs from raw html of index.html. krunk Calibre 4 09-20-2010 09:48 PM
Calibre won't open after install -- ERROR: Bad database location htbyron Calibre 3 06-17-2010 10:43 AM
Reading HTML ebooks from Calibre Clytie Calibre 3 05-04-2010 10:44 AM
Calibre HTML Metadaten disem1 Software 0 05-02-2010 12:57 PM
Anyone use Calibre to produce ebooks from HTML? AlexBell Workshop 10 07-03-2009 07:15 AM


All times are GMT -4. The time now is 06:04 AM.


MobileRead.com is a privately owned, operated and funded community.