View Single Post
Old 11-23-2009, 07:28 PM   #12
Peter Sorotokin
speaking for myself
Peter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it isPeter Sorotokin knows what time it is
 
Posts: 139
Karma: 2166
Join Date: Feb 2008
Location: San Francisco Bay Area
Device: PRS-505
Quote:
Originally Posted by djgreedo View Post
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).
Peter Sorotokin is offline   Reply With Quote