Re: canvas text: line-height and getting .font

On Tue, 21 Jul 2009, Simon Pieters wrote:
>
> "The font DOM attribute, on setting, must be parsed the same way as the 'font'
> property of CSS ... with the 'line-height' component forced to 'normal'.
> ...
> On getting, the font attribute must return the serialized form of the current
> font of the context. [CSSOM]"
> 
> What does forcing line-height to normal mean for getting?
> 
> Consider
> 
> ctx.font='15px/2 serif';
> alert(ctx.font);
> 
> should it alert '15px/2 serif' or '15px serif' (or something else)?

"15px serif". I've tried to make it clearer.

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

Received on Friday, 31 July 2009 23:02:37 UTC