W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2012

Re: [whatwg] [canvas] letter-spaceing

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 20 Sep 2012 22:48:25 +0000 (UTC)
To: Tyler Larson <talltyler@gmail.com>
Message-ID: <Pine.LNX.4.64.1209202246010.27765@ps20323.dreamhostps.com>
Cc: whatwg@whatwg.org
On Thu, 26 Apr 2012, Tyler Larson wrote:
> In this version of the canvas spec, 
> http://www.whatwg.org/specs/web-apps/current-work which as far as I know 
> of is the new one being worked on, there are two mentions of 
> letter-spacing but no way to set the letter-spacing.

The mentions of letter-spacing there are in the part of the spec relating 
to rendering HTML, not the section on canvas.

> If you take a look at 
> http://www.whatwg.org/specs/web-apps/current-work/#text-styles it has 
> the same properties as it did before. It seems like this is already 
> being thought about but just not yet formalized.

I haven't yet added anything to CanvasDrawingStyles for fonts other than 
the alignment and what is supported by the 'font' shorthand property. I 
expect we will eventually add more, but in the meantime I recommend using 
the new TextMetrics features to perform manual letter spacing 
adjustements. If this is something that is commonly done, it would be a 
good argument for adding native support.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 20 September 2012 22:48:51 UTC

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