06-07-2011, 10:21 AM | #1 |
Chasing Butterflies
Posts: 3,132
Karma: 5074169
Join Date: Mar 2011
Location: American Southwest
Device: Uses batteries.
|
PRS+ Font Help
I've kind of been pinging all over the Mobile Read forum because I'm not sure where this topic goes... but I've been having a lot of issues with getting the font perfect on my PRS-950. Here's the saga so far:
1. I've successfully loaded PRS+ on my reader. (Thank you, PRS+ team!) 2. I've figured out how to load fonts and create the custom CSS files. 3. I've used the Calibre modify-epub plugin to remove embedded fonts from my epub books. Seems like the hard stuf is over and now I just need to find a font that I like. Problem is, all the fonts I like look weird on the Sony -- they look really thick and bold. I figured this was just an artifact of the reader, until I hit on the bright idea to load Charis -- the font that all my font-embedded epubs were using -- to the reader. Sure enough, loading Charis onto the reader and using it gives me a really thick, bolded version of Charis -- very different from the way the font-embedded epubs used to look when they were using embedded Charis. At this point, it would seem that the culprit is my user-defined CSS that I'm creating and using with PRS+. I do not speak CSS, so it wouldn't surprise me. All I know is that the CSS I'm using does work in the sense that it invokes the correct font, but it makes the font bold and thick and unpleasant. Can anyone -- PRS+ expert, font changing guru, CSS programmer -- tell me what I'm doing wrong, please? Th CSS shell I have now is this: Code:
@font-face { font-family: "Charis"; font-weight: normal; font-style: normal; src: url(res:///Data/fonts/Charis-Regular.ttf); } @font-face { font-family: "Charis"; font-weight: bold; font-style: normal; src: url(res:///Data/fonts/Charis-Bold.ttf); } @font-face { font-family: "Charis"; font-weight: normal; font-style: italic; src: url(res:///Data/fonts/Charis-Italic.ttf); } @font-face { font-family: "Charis"; font-weight: bold; font-style: italic; src: url(res:///Data/fonts/Charis-BoldItalic.ttf); } body { font-family: "Charis", serif; } .calibre { font-family: "Charis", serif; } Code snippet from embedded epub that I'm using for comparison purposes: Code:
.calibre { background-color: #FFF; display: block; font-family: "Charis"; font-size: 1em; line-height: 1.2; margin-bottom: 0; margin-left: 5pt; margin-right: 5pt; margin-top: 0; padding-left: 0; padding-right: 0; text-align: center } |
06-07-2011, 11:22 AM | #2 |
2B || !2B
Posts: 851
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
|
Hi,
some general infos, things to look at:
|
06-07-2011, 11:28 AM | #3 |
Chasing Butterflies
Posts: 3,132
Karma: 5074169
Join Date: Mar 2011
Location: American Southwest
Device: Uses batteries.
|
1. Yeah, I know about the "only works on a new epub" issue, thank you.
2. Seems like there aren't any typos. And I'm seeing the same behavior across all fonts. 3. The brightness and contrast settings shouldn't cause the difference I'm seeing between embedded-Charis and device-Charis -- there has to be something else going on or they'd still look the same, I think. |
06-07-2011, 12:49 PM | #4 |
Groupie
Posts: 182
Karma: 203167
Join Date: Apr 2011
Device: Sony Reader Prs 950, iPad
|
Have you compared it to a regular epub that doesn't have embedded fonts? You can download epubs from Gutenberg project or create your own epub from instapaper.com (bookmark an article and download it as an epub).
Can you attach a comparison photo? Also, if you could, attach a problematic epub for us to look at. Just off the top of my head it appears that fonts are being overlaid... that is, the epub is applying two css stylesheets, one from the PRS+, and one from the embedded font css. So try on a regular epub. The Css file for prs+ looks fine. Last edited by sonyreaderfan; 06-07-2011 at 12:57 PM. |
06-07-2011, 12:52 PM | #5 |
Chasing Butterflies
Posts: 3,132
Karma: 5074169
Join Date: Mar 2011
Location: American Southwest
Device: Uses batteries.
|
I can attach a screenshot tonight, if that will help.
|
06-07-2011, 01:10 PM | #6 |
Groupie
Posts: 182
Karma: 203167
Join Date: Apr 2011
Device: Sony Reader Prs 950, iPad
|
|
06-07-2011, 01:22 PM | #7 |
Chasing Butterflies
Posts: 3,132
Karma: 5074169
Join Date: Mar 2011
Location: American Southwest
Device: Uses batteries.
|
Well, I mean, now that I've stripped out embedded fonts, they all look the same -- equally bolded.
But I'll try to pull a PD epub tonight for my screenshots. Can anyone quickly point me to one that's already embedded with Charis? It's a commonly embedded font. Otherwise, I'll have to dig through the archives. |
06-07-2011, 02:38 PM | #8 | |
Groupie
Posts: 182
Karma: 203167
Join Date: Apr 2011
Device: Sony Reader Prs 950, iPad
|
Quote:
I'll attach one, The Adventures of Huckleberry Finn from Gutenberg Project. See if you're getting thick Charsil instead of regular Charsil. It doesn't have embedded fonts so you can choose whatever fonts you want to use for it. |
|
06-07-2011, 02:42 PM | #9 |
Resident Curmudgeon
Posts: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Pick out an ePub available on MR that shows the problem and I can have a look and see if I can figure out what seems to be the problem.
|
06-07-2011, 02:42 PM | #10 | |
Resident Curmudgeon
Posts: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
06-07-2011, 02:44 PM | #11 |
Groupie
Posts: 182
Karma: 203167
Join Date: Apr 2011
Device: Sony Reader Prs 950, iPad
|
Hmm, didn't attach, trying again. I'll use a smaller file.
|
06-07-2011, 02:48 PM | #12 | |
Resident Curmudgeon
Posts: 74,027
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
https://www.mobileread.com/forums/showthread.php?t=53913 This way you can see what happens when you override the embedded font I put in. |
|
06-07-2011, 02:56 PM | #13 |
Groupie
Posts: 182
Karma: 203167
Join Date: Apr 2011
Device: Sony Reader Prs 950, iPad
|
I think the problem is with somehow trying to override the embedded fonts. So first, try it with that mark Twain epub to see if it looks fine so epub without embedded fonts. Then try it on a epub with embedded fonts.
|
06-07-2011, 03:48 PM | #14 |
Nameless Being
|
If I read what you wrote correctly, you are having a problem with bolding on all text in ePubs with NO embedded fonts. Your CSS looked good, BTW. I'm not familiar with PRS+, so I'm wondering if there is a setting within it that turns everything Bold. I know there is a least on iOS or Android reader app that has such a setting. If so, that could be the problem. Another thing to check besides spelling of font names (which was already mentioned above) is that the font files themselves are actually all in the fonts folder.
If this problem is occuring across multiple ePubs, then the issue might not be related to the ePub CSS. However, you might check the CSS for one of the ePubs just to verify that there are no font-weight: bold; attributes in any key tags such as the body or p tags. One other thing: I would get rid of this statement in the CSS: Code:
.calibre { font-family: "Charis", serif; } Last edited by jswinden; 06-07-2011 at 04:00 PM. |
06-07-2011, 04:13 PM | #15 |
Chasing Butterflies
Posts: 3,132
Karma: 5074169
Join Date: Mar 2011
Location: American Southwest
Device: Uses batteries.
|
Couple of thoughts...
Sony Reader Fan, thank you for the clean epub -- I'll post a screenshot of that, too. JSWolf, thank you for the embedded file -- I'll load that up tonight, take a picture, strip the fonts out, take a NEW picture, and then post both pictures for comparison. Jack, yes, you read correctly -- any book that does NOT have embedded fonts is bolding it up. I'll remove that .calibre tag -- I had copied this from another thread, so I'm glad to hear that's not necessary. I'm very worried you may be right about PRS+ causing everything to be bold. I certainly don't know how to fix THAT. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Choosing the right font for PRS-300 | sabredog | Calibre | 1 | 08-03-2010 07:03 AM |
Font on PRS-600? | dorino | Sony Reader | 1 | 06-18-2010 12:45 PM |
PRS-500 and font scaling | dorkydood | Sony Reader | 1 | 04-10-2010 08:39 PM |
PRS-600 Font size help | snaver | ePub | 3 | 01-26-2010 06:19 PM |
How do I change the font in a Prs-300 | yoyos_vstar | Sony Reader | 13 | 01-01-2010 05:44 PM |