(I'm not certain if this should be here or in the Calibre forum, but it applies generically, so...)
I've been playing with Calibre for the last few days with my brand-squeaky new PRS-505.
I would like to override the default fonts in the unit.
While I suppose I could change the default fonts globally on the unit, 1) I'd rather not at this time because 2) all of the hacks I've seen so far relating to that seem to also reflash the unit and my firmware (v 1.1.01.25200) doesn't seem to be among the supported versions.
I have had good luck with applying fonts from a 'fonts' folder while converting to ePub. Which is nice, but since ePub doesn't support fully-justified text and can't suppress those silly page numbers, I'd rather avoid that.
Trying to externally reference a 'fonts'-folder font with the LRF format has met with no success, of yet.
The interesting thing was trying to
embed a font using Calibre.
On a personal level, I find embedding a font in every book to be pretty offensive, but if I
have to do so, then I suppose I will.
But my luck has been spotty.
Here is a sample of my CSS override string:
Code:
body {
font-family: "Comic Sans MS", sans-serif;
font-size: 11pt;
text-align: justify;
font-weight: normal;
font-style: normal;
}
p {
font-family: "Comic Sans MS", sans-serif;
font-size: 11pt;
text-align: justify;
font-weight: normal;
font-style: normal;
}
div {
font-family: "Comic Sans MS", sans-serif;
font-size: 11pt;
text-align: justify;
font-weight: normal;
font-style: normal;
}
blockquote {
font-family: "Comic Sans MS", sans-serif;
font-size: 11pt;
text-align: justify;
font-weight: normal;
font-style: normal;
}
a {
font-family: "Comic Sans MS", sans-serif;
font-size: 11pt;
text-align: justify;
font-weight: normal;
font-style: normal;
}
h1 {
font-family: "Comic Sans MS", sans-serif;
font-size: 13pt;
text-align: center;
font-weight: bold;
font-style: normal;
}
h2 {
font-family: "Comic Sans MS", sans-serif;
font-size: 12pt;
text-align: center;
font-weight: bold;
font-style: normal;
}
This looks a bit odd. Since I wasn't having much luck with applying multiple tags to one style definition, I broke them out individually.
Also, before you scream at the choice of font, I am using Comic Sans purely as a
test font, because when it works, I'll
know that the type face is there, since it's not your average-looking sans-serif font.
Now, with the above styling, the only tags I've seen actually
using the font have been the H1 and H2 tags.
The default body tag doesn't seem to be overriding much, nor do the P, A or DIV tags (DIV tags being predominant in my source files).
Can LRF-formatted books reliably use an external or embedded font reference like ePub seems to support?
Can LRF-formatted books reliably use the CSS override feature of Calibre?
Am I wasting my time even trying this?
Any thoughts would be appreciated.
-JPB