Quote:
Originally Posted by quiris
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.