View Single Post
Old 11-14-2014, 12:05 PM   #138
Peter Ahlstrom
Connoisseur
Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 500000
Join Date: Oct 2011
Location: Utah
Device: iPad
Quote:
Originally Posted by quiris View Post
The algorithm that I use in my epubQTools (--myk-fix option) and I can confirm that it works in many many books prepared by this tool.

To avoid font stripping problem:
1) The main font must be set up for body tag.
2) The main font must not be used in other selectors except above body tag.
3) Use other fonts according your wishes
4) CSS style file with above styles must be linked with every XHTML file in ebook.
Well, I just tried this, and...it worked.

I had tried #1 before, and I had tried #4 before, but not at the same time. Combining all 4 steps definitely solved my problem.

To reiterate: I was embedding one font used for headers, but I was specifying a pre-installed font (Palatino or serif) to be used for most (but not all) of the body text.

Now I have Palatino specified in the body tag in the CSS file. I don't mention Palatino anywhere else in the CSS or the html (no wait, yes I did have it mentioned in a p style tag on the title page, and it still worked! I just now removed it from that tag since it's redundant, and this didn't make it stop working.) I now have only one CSS file. When I want to change the body font in other sections, I do that in div tags (in the CSS file).

All headers using the one embedded font are also explicitly classed, but that was from a different suggestion earlier in the thread, and it may not have anything to do with the success or failure of this book.

So anyway, what quiris said to do fixed everything for me. Thank you, quiris.

Last edited by Peter Ahlstrom; 11-14-2014 at 12:32 PM.
Peter Ahlstrom is offline   Reply With Quote