View Single Post
Old 02-10-2024, 04:10 AM   #1
Amalthia
Wizard
Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.Amalthia ought to be getting tired of karma fortunes by now.
 
Amalthia's Avatar
 
Posts: 1,201
Karma: 588454
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
Extra CSS @font-face losing font url

Hello,

In my Common Option --> Look and Feel --> Styling --> Extra CSS I'm using this block to add a font reference:

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);}
When I convert a file from epub to epub, one of the font-faces loses the "src: url" data.

The code looks like this:

Code:
@font-face {
font-family: "Times New Roman"; 
font-weight: normal; 
font-style: normal; }
I'm expecting to see this:

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);}
I'm not sure why my font-weight normal, font-style-normal @font-face is losing the url information on conversion?

I'd appreciate any and all help

Thanks,
Amalthia
Amalthia is offline   Reply With Quote