Answering my own question, managed to solve it by base64-encoding the font 
asset and using that in a data: URI.

All part of a larger effort to avoid the need for Freetype in Javascript...


On Thursday, December 21, 2017 at 5:14:10 PM UTC, Reuben Scratton wrote:
>
> Is it possible for a --preload-file asset to be referred to by URL at 
> runtime?
>
> What I'm specifically after is to use CSS's @font-face property to refer 
> to preloaded custom font files. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to