Thread: Canvas Problem
View Single Post
Old 12-05-2012, 01:06 AM   PM User | #18
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,210
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Quote:
Originally Posted by donna1 View Post
with html5 canvas you can draw and write text and everything in javascript.
It can be interactive too and do moving graphics.
Yes. And it's overkill in probably more than half the things I see it being used for.

And it's no substitute for many HTML tags and CSS properties.

For example, if you draw text on a canvas, then that text is SET at the number of pixels you used when you drew it.

If I put HTML text on a page, using CSS such as
Code:
<span style="font-size: x-large;">Headline</span>
then the browser user can easily cause the font size to grow or shrink, so it can be much more user-friendly to, say, people with limited vision.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote