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

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

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 5 Aug 2009 01:08:34 +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.0908050108060.28566@hixie.dreamhostps.com>
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 GMT

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