|
|
#1 |
|
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Feb 2011
Device: Sony PRS-350
|
Hello,
I've created an epub in Sigil (0.4.2) where I use an embedded font. This works just fine in ADE (and in Sigil 'Book View'), but on my PRS-350 (running PRS+ 2.0.14), the headers (h1 tags) are shown in the default font. The css: Code:
@font-face {
font-family : "Fontin";
font-weight : normal;
font-style : normal;
src : url(../Fonts/Fontin.ttf);
}
h1 {
font-family : "Fontin", serif;
font-size : 2.55em;
color : #36292c;
text-align : center;
}
p {
font-size : 0.75em;
}
.fntn {
font-family : "Fontin", serif;
font-size : 1.55em;
text-align : center;
}
Code:
<h1>Test header</h1> <p class="fntn">Test sub</p> ![]() Could anyone enlighten me on what's going on here? Thanks... |
|
|
|
|
|
#2 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,270
Karma: 16544702
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
I tried your epub on my PRS650. Both headings are displayed in Fontin and the main body text is displayed in the Sony default serif font. See attached screencap.
![]() I'm not sure what your goal is, but if you're using PRSPlus you wouldn't normally need to fully embed any fonts. Usually you'd
All epubs will then use that css file until you select a different css file. If you are going to fully embed the fonts inside the epub then you should probably choose the 'Disabled' option from the above PRSPlus menu. |
|
|
|
| Advert | |
|
|
|
|
#3 | |
|
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Feb 2011
Device: Sony PRS-350
|
Quote:
I just had a go and disabled the Prs+ font override. And to my surprise, the headers are now displayed as defined in the css (=with the embedded font)! Very strange... Note: I agree you can load fonts on the reader instead of embedding, but it would be nice to at least be able to embed the more exotic fonts... |
|
|
|
|
|
|
#4 | |
|
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
You obviously have more experience than I do. Wallowing in my own ignorance, none of this seems either surprising or strange. I am curious, why do you find this "very strange"? Last edited by DoctorOhh; 11-07-2011 at 03:16 AM. |
|
|
|
|
|
|
#5 |
|
350 Hoarder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,587
Karma: 8281267
Join Date: Dec 2010
Location: Midwest USA
Device: Sony PRS-350, Kobo Glo & Glo HD, PW2
|
What dwanthny said. One of PRS+'s many purposes is to override the existing fonts used. It sounds like it's doing a beautiful job of it.
If you want a custom font but only to replace the default font, but still leave any embedded font the .epub calls for, delete the term "!important" from your .css file and see if it doesn't make you happier and work the way you want it. Most people however want their own preferred font even over the exotic fonts an epub might have embedded, so that's why we use PRS+. It's easier on our eyes, especially when reading for longer periods. |
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Feb 2011
Device: Sony PRS-350
|
Quote:
I've found the culprit: I had some css files on my Sony that I put there when I installed another custom firmware (probably Boroda). And it was these files that I inspected for some h1 override font. There was nothing there. (Hence my surprise: I specified a custom font in the epub ccs, and it simply ignored it...)But obviously, Prs+ takes its css files from another folder. And there I found a "font-family" item for all h1 headers. ![]() I'm quite happy that this is solved!
|
|
|
|
|
|
|
#7 | |
|
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Feb 2011
Device: Sony PRS-350
|
Quote:
An example: I have an epub of "Art History for Dummies". The main text is in a font I don't like (Cheltenham), so I did an override and used Fontin instead. However, the image captions use Univers. This font is better suited for its purpose than Fontin, so I want to keep the embedded font. So in some cases, a mix of embedded + custom fonts is what I want. I'm a very demanding person... ![]() I hope this clarifies (a bit) my original question/difficulty. Thanks for the reply! |
|
|
|
|
![]() |
| Tags |
| css, embedded fonts, prs+, prs-350 |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't delete embedded font | eosrose | Sigil | 1 | 08-16-2010 07:28 AM |
| problem with embedded font | ericshliao | EPUBReader | 2 | 12-11-2009 11:04 AM |
| Another way to make PDF with embedded font | fghxu | Sony Reader | 0 | 10-07-2009 10:53 AM |
| Common font and/or embedded fonts... | Dahak | LRF | 6 | 06-28-2009 02:32 PM |
| LRF with embedded font | igorsk | Sony Reader | 8 | 10-26-2006 09:08 AM |