[whatwg] Text APIs on <canvas>

Charles lists07 at wiltgen.net
Thu May 8 10:03:05 PDT 2008


> Apple Macintosh, the GUI champion, uses condensed font.

Lucida Grande is not considered a condensed font.

-- Charles

-----Original Message-----
From: whatwg-bounces at lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Krištof Želechovski
Sent: Thursday, May 08, 2008 9:53 AM
To: 'Mathieu HENRI'; whatwg at whatwg.org
Subject: Re: [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 at 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





More information about the whatwg mailing list