Search code examples
cssbase64font-facedata-uriwoff

Is there a way to use the same base64 data URI with two @font-face declarations?


I have a CSS file with @font-face declarations. The corresponding fonts are stored as base64-encoded WOFFs within the declarations. For reasons that you'll have to trust are good ones, I'd like to create multiple @font-face declarations that point at the same base64 WOFF (meaning, without duplicating it within the CSS file, nor moving it to an external file.)

Can it be done? If so, how?


Solution

  • Further research suggests a simple answer: it can't be done.