Is it possible to embed web fonts in a standalone HTML page using a dataURL or something similar, without having to load them from an external file or address?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
that’s when you encode the font in base64. you will technically have a “gibberish string” representing that font. this will increase load times since base64 is very long.
there are tools online that do that for you. essentially, it takes the font file, encodes it in base64 and replaces the font location with the base64 encoded version.