Quote:
Originally Posted by djgreedo
I wonder if there is a way to double up on the fonts so I can embed some public domain fonts with the document but also make the document use my preferred fonts if they are available.
|
When you embed fonts you have to use @font-face to bind font files to a particular family name, say, "Vera Sans":
@font-face { font-family: "Vera Sans"; ... ; src:url(...); }
Then you can specify this CSS:
body { font-family: Calibri, "Vera Sans", sans-serif; }
This will try to use Calibri, if it is available on the platform. If it is not available, it will try Vera Sans font - which will work as long as font embedding is supported by the Reading System. Finally, if neither of them work it will use generic sans serif font.
Note that in the implementations based on Adobe Reader Mobile SDK, the only way to make a platform (non-embedded) font available is to include corresponding @font-face definition it in the user stylesheet (which most devices don't support at this point).