blob: 4c6b6e68e9654fc8b6cdf64d117c08e7a7d7477a [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<p>This test makes sure that user-installed fonts work correctly when drawn into canvas. The test passes if you see a big solid black square below (and not an @ sign).</p>
<canvas id="canvas" width="300" height="300"></canvas>
<script>
let context = canvas.getContext("2d");
context.font = "400px 'Ahem'";
context.fillText("A", -50, 270);
</script>
</body>
</html>