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

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 UTC