Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 05-17-2012, 12:35 PM   #1
Ebby
Enthusiast
Ebby began at the beginning.
 
Posts: 26
Karma: 10
Join Date: May 2012
Location: Belgium
Device: Sony prs t1
How to remove embedded fonts?

Hello,

I'm completely new to the html and css so if somebody could help me I will be very happy.

I have some ebooks which not let me change the font on my ereader. I think it is because there is some embedded fonts. I suppose there must be a way to change something on the stylsheet, etc. on Sigil to allow me to read those books with the font I like on the reader.

I will like to know what is the coding difference between the books who have embedded fonts (so you can't change the font on the reader as you like) and the other who let this choice possible? I mean where on the css code and what exactly.

P.S. I don't really understand the utility of embedded fonts on the ebooks as when I'm reading them on my Prs-t1 choosing the font "original" the fonts are always the same (I mean not the one who is embedded to the code) on all books?
Ebby is offline   Reply With Quote
Old 05-17-2012, 01:23 PM   #2
theducks
Staff to 4 Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 10,741
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
Quote:
Originally Posted by Ebby View Post
Hello,

I'm completely new to the html and css so if somebody could help me I will be very happy.

I have some ebooks which not let me change the font on my ereader. I think it is because there is some embedded fonts. I suppose there must be a way to change something on the stylsheet, etc. on Sigil to allow me to read those books with the font I like on the reader.

I will like to know what is the coding difference between the books who have embedded fonts (so you can't change the font on the reader as you like) and the other who let this choice possible? I mean where on the css code and what exactly.

P.S. I don't really understand the utility of embedded fonts on the ebooks as when I'm reading them on my Prs-t1 choosing the font "original" the fonts are always the same (I mean not the one who is embedded to the code) on all books?
Embedded fonts can be cool (if used appropriately and sparingly ).
Not all readers support font embedding. Does that mean that all books should not use them?

YOU can choose to remove the font files (in Fonts) which would simply leave a technically, 'broken' EPUB.
Removing the @font declarations from styles (AND the named font, from the font-family: (priority) list in the styles section or CSS should take care of the rest.
Flightcrew should tell you if you missed all but the styles part.

BTW The Calibre: Modify EPUB plugin will do this http://www.mobileread.com/forums/sho...d.php?t=154371 if you use Calibre.
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
theducks is offline   Reply With Quote
 
Enthusiast
Old 05-22-2012, 06:09 PM   #3
Ebby
Enthusiast
Ebby began at the beginning.
 
Posts: 26
Karma: 10
Join Date: May 2012
Location: Belgium
Device: Sony prs t1
Hi theducks, thank you very much for your answer.


Quote:
Originally Posted by theducks View Post
Embedded fonts can be cool (if used appropriately and sparingly ).
Not all readers support font embedding. Does that mean that all books should not use them?
Yes you are right, lets hope the future generation of readers will support more fonts.

Quote:
Originally Posted by theducks View Post
YOU can choose to remove the font files (in Fonts) which would simply leave a technically, 'broken' EPUB.
Removing the @font declarations from styles (AND the named font, from the font-family: (priority) list in the styles section or CSS should take care of the rest.
I tried what you were explaining here but it doesn't worked. Maybe I didn't remove all the things I should have.
Buy the way some of the ebooks don't have font files and other don't have any font-familly anywhere on the CSS.

Quote:
Originally Posted by theducks View Post
BTW The Calibre: Modify EPUB plugin will do this http://www.mobileread.com/forums/sho...d.php?t=154371 if you use Calibre.
I already tried with this plugin before but it doesn't change anything.

The only way I find to remove embedded fonts at the moment is to do a epub > epub conversion.

If you have a little of time one day I will be so happy if you could tell what is making that it is impossible to change the font on a ebook. I mean what is the formula, phrase? Maybe than I could find it on the CSS. Because I suppose one thing is to say I want the book use X font and an other thing is to say I want the book use ONLY the X fonts. I don't know if I'm clear with my poor english!
Ebby is offline   Reply With Quote
Old 05-22-2012, 07:21 PM   #4
theducks
Staff to 4 Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 10,741
Karma: 2485850
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
Let us be sure of the terms:
Font is the way a character Looks (includes the Bold, slant variants)
Font size is how big/little

Failure of the reader to resize:
1) font size is specified in absolute dimensions in the Style
2) What you see is a picture of words (you can't copy/change any word)
3) the reader software has limitatations

There are threads discussing the T1 and using System Local fonts
The solutions are all T1 centric, and make a book into non-inter-changeable device EPUB book .
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
theducks is offline   Reply With Quote
Old 05-22-2012, 07:56 PM   #5
Ebby
Enthusiast
Ebby began at the beginning.
 
Posts: 26
Karma: 10
Join Date: May 2012
Location: Belgium
Device: Sony prs t1
I think my english will not be sufficient to talk about this problem in a detailed way.

But when you are saying "The solutions are all T1 centric" is that means the other devices don't have this problem (the impossibility to change the font-family)?

I think I will continue with the solution I found (the conversion) unless I learn one day the CSS coding.

Even though I have not been able to understand all your advises (the CSS language is far too technical for my comprehension), thank you very much for taking time to respond to my questions.
Ebby is offline   Reply With Quote
Old 05-23-2012, 02:24 AM   #6
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,113
Karma: 958803
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
If done correctly, removal of embedded fonts is not that difficult and is, as theducks already specified, a three-step.
1. removal of the fonts in the ePUB (with Sigil this is in the Fonts folder)
2. Removal of all @font-face references in the stylesheets (could be internal stylesheet, that means in the XHTML files!)
3. Remove references in styles (search for font-family).

If this does not work, there might be interal stylesheets. If you see a lot of @font-face in the XHTML documents, the source is probably a Word document which has not been cleaned up sufficiently. That is a lot more work.

Embedded fonts have their uses. The fonts on the reader usually don't contain a full character set. That means that not every character can be displayed. An embedded font can help there. Also, for certain headers, notes, signs and so on it can have added value.
A base font is usually not that useful, unless it is about the characters mentioned earlier.

Font-embedding on the Sony's can be done in two ways. One way is embedding the font in the ePUB and that will, if done correctly, work on almost all readers. The other method is by placing fonts on the reader in a specified directory and make a change in the stylesheet pointing to those fonts. These ePUB's will only work on that reader without issues.
__________________
Creator and maintainer of the e-Book Tools Word add-in.
Creator and maintainer of the Clean HTML macro for MS Word.
Toxaris is offline   Reply With Quote
Old 05-26-2012, 02:54 PM   #7
JSWolf
Mobile Reader Geek
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 34,227
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
Quote:
Originally Posted by Toxaris View Post
Font-embedding on the Sony's can be done in two ways. One way is embedding the font in the ePUB and that will, if done correctly, work on almost all readers. The other method is by placing fonts on the reader in a specified directory and make a change in the stylesheet pointing to those fonts. These ePUB's will only work on that reader without issues.
Actually, ADE is very forgiving. So if you have an ePub that has @font code pointing to the font files sitting on a Sony Reader, ADE (on a different reader) will still work. It's just that you'll get whatever the default font is. I'm not sure (depending how the code is setup) if other readers that allow font changing will work to change the font. I know if you use a font-family: serif then it will work on other readers to change fonts. But if you use say font-family: Charis, then even if the @font points to non-existent fonts I can't say if changing the fonts via the reader will work.
__________________
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
embedded fonts Wally S Workshop 15 01-21-2012 03:57 PM
Embedded fonts dicknskip Sigil 27 12-01-2011 09:24 AM
Embedded fonts? Greenmantle Kobo Reader 66 07-27-2011 08:20 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


All times are GMT -4. The time now is 11:55 PM.


MobileRead.com is a privately owned, operated and funded community.