大佬教程收集整理的这篇文章主要介绍了windows – Html5 Canvas:旋转的文字在Google Chrome上看起来很扭曲,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<!DOCTYPE HTML> <html> <head> <style> body { margin: 0px; padding: 0px; } #myCanvas { border: 1px solid #9C9898; } </style> <script> window.onload = function() { var canvas = document.getElementById("myCanvas"); var context = canvas.getContext("2d"); context.font = "12pt Calibri"; context.rotate(Math.PI/2.5); context.fillText("Competitive Landcaping!",450,100); }; </script> </head> <body> <canvas id="myCanvas" width="878" height="2000"></canvas> </body> </html>
有关更长,更技术性的答案,请查看此帖子:
http://www.smashingmagazine.com/2012/04/24/a-closer-look-at-font-rendering/
除了尝试在Chrome中选择看起来“最差”的字体外,没有一件事可做.
以上是大佬教程为你收集整理的windows – Html5 Canvas:旋转的文字在Google Chrome上看起来很扭曲全部内容,希望文章能够帮你解决windows – Html5 Canvas:旋转的文字在Google Chrome上看起来很扭曲所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。