W3C home > Mailing lists > Public > public-html@w3.org > August 2009

Re: canvas text: ctx.font='inherit'

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 15 Aug 2009 11:45:13 +0000 (UTC)
To: "L. David Baron" <dbaron@dbaron.org>
Cc: Simon Pieters <simonp@opera.com>, "public-html@w3.org" <public-html@w3.org>, Boris Zbarsky <bzbarsky@mit.edu>
Message-ID: <Pine.LNX.4.62.0908151144510.6420@hixie.dreamhostps.com>
On Mon, 10 Aug 2009, L. David Baron wrote:
> On Wednesday 2009-08-05 01:08 +0000, Ian Hickson wrote:
> > On Tue, 4 Aug 2009, L. David Baron wrote:
> > > 
> > > One more edge case:  I'm not sure how to convert the font-size
> > > component in:
> > >   ctx.font = "menu";
> > > to pixels, since it doesn't really have a font-size component.  For
> > > the ctx.font getter, should it stay as-is, should the whole thing be
> > > computed, or did you intend to allow system fonts in the first
> > > place?
> > 
> > I didn't think about system fonts. What would you recommend? It seems that 
> > computing the whole thing on setting may be the most consistent behaviour.
> 
> I think so too, though I haven't had the chance to implement it yet. 
> (Implementation-wise, I think it may actually mean less work on setting, 
> and just reusing our computed style code for the getter.)

So done.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 15 August 2009 11:45:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:43 GMT