|
|
#1 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 148
Karma: 112134
Join Date: May 2009
Location: Kuala Lumpur
Device: iPad, K3, K4, T1
|
Changing from original font
In my case though I very rarely succeed in actually changing the font at all. Of fifteen different books I tried yesterday, I was only able to change the font in three of them. For the other twelve, no matter which font I chose, the font just won't change from the original. Is this something that is peculiar to me? Or do I not quite understand what "embedded fonts" mean, perhaps. All the fifteen files have a font-family (sometimes more than one) defined in the EPUB stylesheet but since three work and twelve don't, I suspect I'm looking at the wrong thing. Guidance appreciated. |
|
|
|
|
|
#2 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78
Karma: 31173
Join Date: Aug 2011
Location: Paris, France
Device: Sony PRS-T1
|
You can open any EPUB file (even with DRMs, they are zip files with a different extension) with 7-Zip or WinRar, edit all the css files (normally not DRM encrypted), searching for font-family attributes. You just have to remove these up to the following ; (included) or } (NOT INCLUDED) character and save each modified file back into the archive.
Think to edit a copy of the books. However, some books can have style embedded in the same files as the book's text and if they are DRM encrypted, you can't change those without removing the DRMs first. Last edited by seabee; 11-22-2011 at 08:33 AM. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() Posts: 3
Karma: 496
Join Date: Oct 2011
Location: Poland
Device: Sony PRS-T1
|
I also have noticed this issue with my new PRS-T1. Accidentally a new version (0.8.27) of Calibre has just been released with a new feature of "removing specified style information (CSS) from the document during conversion". I'm going to see if it helps at the earliest opportunity.
|
|
|
|
|
|
#4 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 152
Karma: 10606
Join Date: Nov 2011
Location: London, UK
Device: Sony PRS-T1
|
Quote:
|
|
|
|
|
|
|
#5 | |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 148
Karma: 112134
Join Date: May 2009
Location: Kuala Lumpur
Device: iPad, K3, K4, T1
|
Quote:
It also appears the vast majority of EPUB files do have a font-family defined. Which SONY must be aware of. Yet, we have the ability to change fonts within through the reader, suggesting it's something that would work more often than not. If not every time. I'm a bit hesitant to go through my entire library and remove the font-family without understanding the problem better. |
|
|
|
|
|
|
#6 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78
Karma: 31173
Join Date: Aug 2011
Location: Paris, France
Device: Sony PRS-T1
|
Quote:
However, I agree that an option to override font-family defined in EPUB would be really useful. Just do the changes on copies of your books. The only real problem is that if some of your EPUBs require a specific font for special characters (not available in west-european charsets) and are embedding this font, changing the font-familly will make them unreadable. |
|
|
|
|
|
|
#7 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78
Karma: 31173
Join Date: Aug 2011
Location: Paris, France
Device: Sony PRS-T1
|
Quote:
I tried that myself in many EPUB (public domain without DRM), no problem at all and I can select my favorite font. It's only a problem if you don't know how to edit and write-back a simple text file inside a ZIP archive. |
|
|
|
|
|
|
#8 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 152
Karma: 10606
Join Date: Nov 2011
Location: London, UK
Device: Sony PRS-T1
|
Quote:
It is pretty easy to follow the rules once you know about them. |
|
|
|
|
|
|
#9 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 152
Karma: 10606
Join Date: Nov 2011
Location: London, UK
Device: Sony PRS-T1
|
Quote:
Modern web browsers seem to use the fallback technique, and since epub readers are basically HTML rendering engines I'd be surprised if they worked radically differently. |
|
|
|
|
|
|
#10 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 124
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
|
@seabee
Do you use embedded fonts for change the fonts in epubs? I have some trouble to use fonts (my own fonts) outside of epubs on the T1. |
|
|
|
|
|
#11 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78
Karma: 31173
Join Date: Aug 2011
Location: Paris, France
Device: Sony PRS-T1
|
Quote:
|
|
|
|
|
|
|
#12 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 124
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
|
Thanks.
Code:
@font-face {
font-family: "Gentium Book";
font-weight: normal;
font-style: normal;
src: url(res:///Data/fonts/GenBkBasR.ttf)
}
The font isn't used so I think there is something wrong. Does anybody use this method on the T1? |
|
|
|
|
|
#13 | |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48
Karma: 7890
Join Date: Sep 2011
Device: Sony PRS-T1, iPad, iPhone
|
The method I use on my T1 is:
Quote:
|
|
|
|
|
|
|
#14 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 124
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
|
But then I have to include the fonts in each epub. That's what I want to avoid. I want my font on the T1 and use it in every epub. That's less work I think and also saves storage space.
|
|
|
|
|
|
#15 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,099
Karma: 3332928
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350/650/T1, PB360, KoboGlo, KoboAuraHD
|
Quote:
The only way which currently works on a T1 is to fully embed the fonts inside each epub. |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hacks how to return to the original font | lizayin | Amazon Kindle | 1 | 07-07-2011 07:25 PM |
| Changing original font css in ePub | jlbfoot | Sony Reader | 4 | 12-28-2010 12:07 PM |
| Troubleshooting Font size changing | Kumabjorn | Amazon Kindle | 1 | 07-23-2010 12:49 AM |
| DR1000 Changing Font-Size | ThR | iRex | 6 | 06-21-2010 06:29 AM |
| Book Conversion - Changing Original Texts | RWood | Sony Reader | 13 | 04-18-2007 01:28 PM |