3 font-family: no-such-font;
4 src: url(no-such-file.ttf);
7 <canvas id=
"target"></canvas>
9 canvas
= document
.getElementById("target");
10 ctx
= canvas
.getContext('2d');
11 ctx
.font
= "100px no-such-font, ahem";
12 ctx
.fillStyle
= "red";
13 ctx
.fillText("B", 0, 100);
14 ctx
.fillStyle
= "green";
15 ctx
.fillText("A", 0, 100);