View Single Post
Old 02-10-2024, 03:10 AM   #1
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
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