![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 1031580
Join Date: Nov 2008
Device: Kindle Paperwhite, Sony PRS-505(LC) & Rocket eBook
|
Common font and/or embedded fonts...
(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; } 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 |
![]() |
![]() |
![]() |
#2 |
eBook Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Embedding fonts in an LRF book really, really drastically slows down the page rendering - at least if you use the font for the "body" text of the book. It's fine if you only use it for titles, etc, but I'd forget about it for the body text. Page rendering goes from the usual half second to perhaps 3 or 4 seconds, which personally I find unacceptable.
If you want to see an example, here is an LRF book I created a couple of years ago with an embedded Greek font. I find the speed way too slow, personally. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 1031580
Join Date: Nov 2008
Device: Kindle Paperwhite, Sony PRS-505(LC) & Rocket eBook
|
Quote:
Not quite as bad I was envisioning, but still a significant delay. Of course, I was hoping I could get the LRF system to recognize a common font, like the ePubs seem to be able to do. -JPB |
|
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,914
Karma: 143095300
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
To use CSS to embed fonts, use ePub and go to the ePub section and look at the sticky on how to embed fonts on the 505 & 700.
|
![]() |
![]() |
![]() |
#5 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 1031580
Join Date: Nov 2008
Device: Kindle Paperwhite, Sony PRS-505(LC) & Rocket eBook
|
Quote:
I've been spending the last hour trying to un-brick my 505 because I discovered a depressing fact about Igorsk's universal flasher: the options don't line up with the menu buttons. I wanted to back up my firmware... found out my firmware wasn't supported, then went to exit and mistakenly flashed it. ![]() Just got it back up with the older 1.1.00.18040. Does Sony provide an updater with the more recent firmware? If so, I haven't found it yet. -JPB |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 972
Karma: 4999999
Join Date: Mar 2009
Location: Rosario, Argentina
Device: SONY PRS-T2, Kindle Paperwhite 11th gen
|
Quote:
You can embed fonts in LRF documents. The easiest way (even I was able to do that) is using Bookdesigner, the gratest ebook creation program in my opinion. As you have seen, embedding fonts slows down page turning. Another option is creating your ebooks in pdf as explained in a guide by Sony and after that cropping the margins with soPdf. The pdf format allows for embedded fonts. |
|
![]() |
![]() |
![]() |
#7 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 1031580
Join Date: Nov 2008
Device: Kindle Paperwhite, Sony PRS-505(LC) & Rocket eBook
|
Quote:
I don't know if it's a Calibre or Sony issue (my guess: Sony) but early tests seem to not be overriding the font face when the font-weight attribute is normal. With everything else remaining the same, changing the font-weight to bold also picks up the font-family selection. I've tried it with bold, but I haven't tried any of the other allowed vales yet. And, with the embedded font, the initial formatting/indexing seems to take forever. -JPB |
|
![]() |
![]() |
![]() |
Tags |
fonts calibre lrf |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with embedded fonts | James_Wilde | ePub | 25 | 09-24-2010 04:07 PM |
Embedded fonts, Calibre, and choice of fonts | AlexBell | ePub | 8 | 05-30-2010 06:00 AM |
iPad Embedded Fonts | JSWolf | Apple Devices | 24 | 04-26-2010 02:41 PM |
Embedded fonts in epub | erik5000 | ePub | 7 | 12-08-2009 11:55 AM |
Using embedded fonts with italics only | sherman | Calibre | 2 | 06-27-2009 04:32 AM |