![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 179
Karma: 1021404
Join Date: Apr 2010
Location: Stroud, UK
Device: Xgody tablet, LG G3 (Android), moon+reader
|
Embedded font problem
Recently I downloaded an epub book and found a myriad of fonts in the various classes in the stylesheet. Normally I deal with this by changing them to "Arial" (my favorite obviously!) and that solves it.
For this book I had to change seven fonts, which were all that were showing in the twenty-nine categories. BUT, on going back to book view, nothing else had changed at all (in the twenty-two classes without specific font families being listed)!!. In the past I have looked for (and usually found....) 'inherit' which has been clogging things up but there was no sign of 'inherit' here. I even tried (after changing the seven fonts) using Calibre to convert epub to epub: that too has worked in the past. This time - no joy!! My only workaround has been to manually enter ' font-family: "Arial"; ' in EACH of the twentynine classes . . . . Any ideas where the embedded fonts might be hiding?? I think I've looked everywhere. |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,192
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Sometimes you will find an eBook that has fonts specified, but no font files. It happens. I just delete the font-family lines in the CSS.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Embedded means the font EXISTS inside the book.
Sigil keeps those in the Fonts sub-folder as shown in the book browser. You can have a Font USAGE (@font) that simply relies on the CURRENT device to supply at view time. That may work in Sigil, as it has the Computers Font collection to draw from Not Working: 'fontfamily' in the styles, must match the @font Sigil does not care what the familyname is (some devices DO require this match the internal name of the font ![]() ![]() |
![]() |
![]() |
![]() |
#4 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 179
Karma: 1021404
Join Date: Apr 2010
Location: Stroud, UK
Device: Xgody tablet, LG G3 (Android), moon+reader
|
I seem to have stumbled on an answer: the above is informative but seemingly not applicable here.
Each chapter starts with a 'div' whose category is "Basic-Text-Frame". I fuond that by finding that entry in the stylesheet and adding my font-family line to it, Arial was indeed applied to all chapters...... |
![]() |
![]() |
![]() |
#5 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,192
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Are you really using frames? If so, don't. bad idea.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 179
Karma: 1021404
Join Date: Apr 2010
Location: Stroud, UK
Device: Xgody tablet, LG G3 (Android), moon+reader
|
|
![]() |
![]() |
![]() |
#7 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#8 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,313
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I've noticed a <div> surrounding each chapter in some books before...never really understood the need. Is that a requirement of ePub3 or something?
You could just as easily apply any styling to the <body> or <p> tags one time in the CSS and have it accomplish much the same thing. |
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,192
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#10 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,912
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
There are some strang coding conventions out there. Not Wrong, just unnecessarily convoluted
![]() A tag with 3 spans covering the entire block ![]() IMHO time for a new (simple) style that does all 4 things with 1 (CSS) lookup |
![]() |
![]() |
![]() |
#11 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
|
![]() |
![]() |
![]() |
#12 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,192
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I really dislike spans used for bold and italic.
|
![]() |
![]() |
![]() |
#13 | ||
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 171
Karma: 3517858
Join Date: May 2016
Location: Monterrey, Mexico
Device: Samsung Tab-3 7"
|
Quote:
Quote:
But more frequently, what I find are new ways not to do things. Then I'll see that there's some indication that the book was built with one of those "instant e-book maker" programs (names escape me right now) and they've done exactly what you said, Turtle, placed a <div> around the whole chapter, or loaded the text up with unnecessary <div>s, or whatever. And it's a constant reminder, not all programs are as well made as Sigil. Of course, the user can then turn around and muck things up. (This is the voice of experience speaking here...) But there's not much you can do to protect against that! |
||
![]() |
![]() |
![]() |
#14 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,192
Karma: 144286760
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
When using older lower resolution Readers, you want to (at least) remove all excess CSS styles and if the graphics (including the cover) are much higher resolution, you want to lower the resolution. These older devices can crash, freeze, or temporarily freeze while processing these hi-res images and/or CSS.
|
![]() |
![]() |
![]() |
#15 |
Witchman
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
It's interesting what people have been saying about divs and empty spans on this thread. Divs and empty spans all over your ebook html after you have converted it with some conversion program has always irritated me as well. That's one of the reasons I wrote the CustomCleanerPlus plugin. It automatically removes all empty spans(spans that contain no styling or classes) and it also gives you the option to remove all divs from your ebook in one hit as well.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Embedded font question/problem | pmorris | Editor | 13 | 05-12-2014 03:19 PM |
Mini advanced font settings ignored in one book - embedded font? | lordofazeroth | Kobo Reader | 4 | 09-20-2013 02:15 PM |
Embedded font problem | Moonraker | Sigil | 13 | 05-21-2013 05:33 PM |
embedded font - now line with embedded font not re-flowing | Kaylee Skylyn | ePub | 23 | 08-09-2012 07:30 PM |
problem with embedded font | ericshliao | EPUBReader | 2 | 12-11-2009 10:04 AM |