Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-19-2021, 12:35 AM   #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-19-2021, 12:44 AM   #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
Advert
Old 11-19-2021, 12:45 AM   #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: 44,525
Karma: 24495948
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


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 01:07 PM
Automatically remove font-family on conversion? Barty Calibre 9 04-04-2019 02:57 AM
Question about styling Font-Size GrannyGrump Workshop 6 03-17-2017 02:17 AM
Calibre won't open on Mac OS X Mavericks after changing font in "Look & Feel" blueinfj Calibre 11 03-17-2014 09:08 AM
Font weight and other styling with RTF for BeBook spaze Other formats 1 09-05-2009 04:25 PM


All times are GMT -4. The time now is 10:38 AM.


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