소스 검색

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.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 );