Browse Source

Canvas font property order fix (#23685)

Michael Blix 3 years ago
parent
commit
42ba1471c7

+ 1 - 1
examples/webgl_materials_blending.html

@@ -154,7 +154,7 @@
 				ctx.fillRect( 0, 0, 128, 32 );
 
 				ctx.fillStyle = 'white';
-				ctx.font = '12pt arial bold';
+				ctx.font = 'bold 12pt arial';
 				ctx.fillText( text, 10, 22 );
 
 				const map = new THREE.CanvasTexture( canvas );

+ 1 - 1
examples/webgl_materials_blending_custom.html

@@ -216,7 +216,7 @@
 				ctx.fillRect( 0, 0, 128, 32 );
 
 				ctx.fillStyle = 'white';
-				ctx.font = '12pt arial bold';
+				ctx.font = 'bold 11pt arial';
 				ctx.fillText( text, 8, 22 );
 
 				const map = new THREE.CanvasTexture( canvas );