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

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.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 5 August 2009 01:09:10 UTC