encode fonts to base64