W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > January 2011

[Bug 11657] My worry is that this doesn't cover all the different kinds of textual transformations. Yes, it does cover obliqueness and weight, it does not cover letter spacing and other textual attributes that may be of some use to developers.

From: <bugzilla@jessica.w3.org>
Date: Tue, 04 Jan 2011 04:41:42 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1PZyiM-0001Oe-UP@jessica.w3.org>

Cameron McCormack <cam@mcc.id.au> changed:

           What    |Removed                     |Added
                 CC|                            |cam@mcc.id.au

--- Comment #1 from Cameron McCormack <cam@mcc.id.au> 2011-01-04 04:41:42 UTC ---
It seems to me that a reasonable solution to this is to allow the rendering of
an arbitrary HTML element to the canvas.  I don't think you want to duplicate
all of CSS's text functionality in the canvas 2D context itself.  You probably
want to allow some size to be passed in when doing this (so that text could
wrap), too.

And it would be pretty handy if you could also just pass in a string to be

  var ctx = ...;
  ctx.drawHTML("<span style='letter-spacing: -0.1; font-weight: 100'>Well
<i>hello</i> there!", 100, 100, 500);

where the (100, 100) is the top-left corner of the area in which to lay out the
CSS boxes, and 500 is the width.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 4 January 2011 04:41:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:31:03 UTC