I wish to preview a font file once it is chosen in an <input type="file">
input.
I've tried an approach similar to that used to preview images (similar to this answer), but using a Font
object instead of an Image
object. However, the font fails to load after the src
is set, because it searches for the font installed on the system, but by a temp name.
How can I do this?