[whatwg] Text APIs on <canvas>

Making the font smaller would make line spacing non-uniform and the text
could be hard to read.  Apple Macintosh, the GUI champion, uses condensed
font.
Chris

-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Mathieu HENRI
Sent: Thursday, May 08, 2008 11:03 AM
To: whatwg at whatwg.org
Subject: Re: [whatwg] Text APIs on <canvas>

Apropos context.fillText() and the maxWidth attribute, the spec now says

	" 4. If the maxWidth argument was specified and the hypothetical
width 
of the inline box in the hypothetical line box is greater than maxWidth 
CSS pixels, then change font to have a more condensed font (if one is 
available or if a reasonably readable one can be synthesised by applying 
a horizontal scale factor to the font) or a smaller font, and return to 
the previous step. "

Scaling the glyphs uniformly, vertically anchored to the textBaseline, 
would look much more coherent and be more predictable for developers 
than applying a non-uniform scaling or changing the font altogether.

If possible I would loose the part about changing the font or applying 
an horizontal scale factor to the font.



-- 
Mathieu 'p01' HENRI
JavaScript developer, Opera Software ASA

Received on Thursday, 8 May 2008 09:52:45 UTC