Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 05:02 AM   #1
rockster
Connoisseur
rockster began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Sep 2012
Device: kindle
[Feature Request] Add option to overwrite default ebook font

Option to overwrite default ebook font will be great.
rockster is offline   Reply With Quote
Old Yesterday, 05:13 AM   #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: 46,194
Karma: 29626604
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can override any styling you like including fonts using the CSS stylesheet in the Styles section of the viewer preferences.
kovidgoyal is offline   Reply With Quote
Old Yesterday, 04:30 PM   #3
rockster
Connoisseur
rockster began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Sep 2012
Device: kindle
Yes, but it doesn't work for all ebooks. Probably they have some kind of protection. Currently i have this style, but it doesn't work for all ebooks:

Code:
body, html, div {
  text-align: justify !important;
  hyphens: auto;
  font-family: "DejaVu Sans", serif !important;
}
And if i try the ebook that won't work in Calibre on Foliate, with enabled option for overwriting default font, overwriting the font in Foliate works.

Last edited by rockster; Yesterday at 04:35 PM.
rockster is offline   Reply With Quote
Old Yesterday, 07:18 PM   #4
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: 46,194
Karma: 29626604
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
* {
text-align: justify !important;
hyphens: auto;
font-family: "DejaVu Sans", serif !important;
}
kovidgoyal is offline   Reply With Quote
Old Today, 02:34 AM   #5
rockster
Connoisseur
rockster began at the beginning.
 
Posts: 64
Karma: 10
Join Date: Sep 2012
Device: kindle
Thanks, this worked.
rockster is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature Request: Option for white background viewer just_jeepin Viewer 1 04-11-2024 04:20 PM
Feature request: Add an non-acsii-ized option to calibre. Orville Q. Song Library Management 9 04-09-2022 02:40 PM
Patch request: Pocket article delete option default Mrs_Often Kobo Developer's Corner 1 09-15-2018 07:42 AM
Feature Request: Option to disable creation of NCX ibu Sigil 9 03-15-2017 12:11 AM
Feature Request - Edit File Option fcoulter Calibre 10 07-22-2010 12:56 AM


All times are GMT -4. The time now is 07:04 PM.


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