Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html class="test-wait">
<meta charset="utf-8">
<title>Loading a FontFace from an ArrayBuffer must not crash</title>
<link rel="author" href="mailto:dholbert@mozilla.com">
<script>
fetch("/fonts/Ahem.ttf")
.then(res => res.arrayBuffer())
.then(async buffer => {
const face = new FontFace("bufferFont", buffer);
document.fonts.add(face);
await face.load();
document.documentElement.className = "";
});
</script>
</html>