![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,174
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);} The code looks like this: Code:
@font-face { font-family: "Times New Roman"; font-weight: normal; font-style: normal; } 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'd appreciate any and all help Thanks, Amalthia |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,847
Karma: 26594666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hard to say without a complete example.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,174
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Do you need the page_style.css file as an example or the file I'm converting as an example? From what I can tell this is happening with all epubs I convert.
I'll see if I can find a public domain ebook for an example if that's what you need. Thanks, Amalthia |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,879
Karma: 87654321
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Are you saying the problem only occurs for the first font-face shown in the first post of this thread?
If so I did notice that there is an added space in the url that does not appear in the other font-face definitions. |
![]() |
![]() |
![]() |
#5 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,174
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Quote:
I'll remove the space and see if that helps. Thanks! Amalthia |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,174
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Removing the extra space made a difference! It's now fixed. Thanks for catching that!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
@font-face is not embedded | iliakan | Conversion | 2 | 01-12-2015 03:29 AM |
Font from extra-css is not looked-up correctly | iliakan | Conversion | 1 | 01-11-2015 08:59 AM |
can't reduce font size of headline using extra css | scissors | Recipes | 5 | 12-23-2013 04:45 AM |
add 2 different font paths in Extra CSS | raykoko | Calibre | 2 | 08-17-2013 05:47 AM |
Am I using @font-face correctly? | phossler | Sigil | 12 | 11-30-2012 05:38 PM |