W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2008

[whatwg] Text APIs on <canvas>

From: Křištof Želechovski <giecrilj@stegny.2a.pl>
Date: Thu, 8 May 2008 18:52:45 +0200
Message-ID: <24EA86B9834944A996D43AA72190B7D6@IBM42F76C011DF>
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

-----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
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:02 UTC