瀏覽代碼

Canvas font property order fix (#23685)

Michael Blix 3 年之前
父節點
當前提交
42ba1471c7
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/webgl_materials_blending.html
  2. 1 1
      examples/webgl_materials_blending_custom.html

+ 1 - 1
examples/webgl_materials_blending.html

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