View Single Post
Old 07-13-2022, 03:55 PM   #7306
Amalthia
Wizard
Amalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beautyAmalthia does all things with Zen-like beauty
 
Amalthia's Avatar
 
Posts: 1,188
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Hello,

I've upgraded my Calibre to the new 6.0 version.

After that when I downloaded a new fan fiction story, I noticed that my "output_css:" code no longer accepted "@font-face" information. When I have a @font-face line of code "fanficfare" disregards all my output_css settings. When I remove the @font-face block of code, the rest of the css is used to format the newly downloaded story.

Here is the output_css: I used in my personal.ini settings:

Code:
@font-face {font-family: "Times New Roman";  font-weight: normal;  font-style: normal;
src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/Times-New-Roman.ttf);}
@font-face {font-family: "Times New Roman"; font-weight: bold; font-style: normal;
src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/Times-New-Roman-Bold.ttf);}
@font-face {font-family: "Times New Roman"; font-weight: normal; font-style: italic;
src:url(res:///ebook/fonts/../../mnt/sdcard/fonts/Times-New-Roman-Italic.ttf);}
@font-face {font-family: "Times New Roman"; font-weight: bold; font-style: italic;
src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/Times-New-Roman-Bold-Italic.ttf);}

body {font-family: "Times New Roman", serif; font-size: 1em; background-color: #ffffff ;
text-align: justify; margin: 2%; -epub-hyphens: none; adobe-hyphenate: none;
-webkit-hyphens: none; -moz-hyphens: none; hyphens: none;}
p {font-family: "Times New Roman", serif; margin-top: 0pt; margin-bottom: 0pt; text-indent: 15pt;}
h1, h2, h3, h4, h5, h6 { text-align: center; padding-bottom: 10pt;}
.CI {
text-align:center;
margin-top:0px;
margin-bottom:0px;
padding:0px;
}
.center {text-align: center;}
.cover {text-align: center;}
.full {width: 100%; }
.quarter {width: 25%; }
.smcap {font-variant: small-caps;}
.u {text-decoration: underline;}
.bold {font-weight: bold;}
I use the @font-face for my Sony PRS readers. Please let me know if you need any other information.

Last edited by Amalthia; 07-13-2022 at 05:23 PM. Reason: change quote tag to code tag
Amalthia is offline   Reply With Quote