11-06-2011, 11:14 AM | #1 |
Junior Member
Posts: 9
Karma: 10
Join Date: Feb 2011
Device: Sony PRS-350
|
PRS-350 only partially displays embedded font
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... |
11-06-2011, 11:57 AM | #2 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
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. |
11-06-2011, 01:46 PM | #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... |
|
11-07-2011, 02:13 AM | #4 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
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 02:16 AM. |
|
11-07-2011, 05:01 AM | #5 |
350 Hoarder
Posts: 3,574
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. |
11-07-2011, 07:35 AM | #6 | |
Junior Member
Posts: 9
Karma: 10
Join Date: Feb 2011
Device: Sony PRS-350
|
Quote:
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! |
|
11-07-2011, 07:49 AM | #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 06:28 AM |
problem with embedded font | ericshliao | EPUBReader | 2 | 12-11-2009 10:04 AM |
Another way to make PDF with embedded font | fghxu | Sony Reader | 0 | 10-07-2009 09:53 AM |
Common font and/or embedded fonts... | Dahak | LRF | 6 | 06-28-2009 01:32 PM |
LRF with embedded font | igorsk | Sony Reader | 8 | 10-26-2006 08:08 AM |