Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-18-2021, 11:35 PM   #1
ALiSMoNiToS
Junior Member
ALiSMoNiToS began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2007
Device: Pocket PC
Conversion-->Look & feel-->Styling: font-family has no effect

Hi,

In Conversion-->Look & feel-->Styling I added the following CSS code:

Quote:
.calibre6 {
font-family:sans-serif !important;
font-size:16px !important;}

.prosequote {
font-family:sans-serif !important;
font-size:16px !important;}
(I found the above CSS classes in the epub with the Inspector in the calibre Viewer.)

The font-size works, but font-family has no effect no matter what value I put in there (I also tried Arial and "Times New Roman"). Any idea what I am doing wrong? (This is on Windows 10)

TIA

ilias
ALiSMoNiToS is offline   Reply With Quote
Old 11-18-2021, 11:44 PM   #2
ALiSMoNiToS
Junior Member
ALiSMoNiToS began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2007
Device: Pocket PC
Adding more details to my previous post, this is an epub to pdf conversion in calibre 3.48 on Windows 10.
ALiSMoNiToS is offline   Reply With Quote
Old 11-18-2021, 11:45 PM   #3
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: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Those classes are in the final document (the conversion output) not the initial one. You need to use classes for what is in the initial document. See https://manual.calibre-ebook.com/con...n.html#styling use the debug pipeline option to inspect the classes in the input document.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embed font family Ebook conversion from content server edgargal Server 8 05-06-2021 12:07 PM
Automatically remove font-family on conversion? Barty Calibre 9 04-04-2019 01:57 AM
Question about styling Font-Size GrannyGrump Workshop 6 03-17-2017 01:17 AM
Calibre won't open on Mac OS X Mavericks after changing font in "Look & Feel" blueinfj Calibre 11 03-17-2014 08:08 AM
Font weight and other styling with RTF for BeBook spaze Other formats 1 09-05-2009 03:25 PM


All times are GMT -4. The time now is 05:48 PM.


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