W3C home > Mailing lists > Public > www-style@w3.org > August 2013

Re: Request for adjustable font-size: line-fit

From: Lea Verou <lea@verou.me>
Date: Tue, 20 Aug 2013 15:32:42 +0300
Cc: "www-style@w3.org List" <www-style@w3.org>
Message-Id: <6829D45C-8901-410B-AEBB-AE00294A077F@verou.me>
To: Anselm Hannemann <info@anselm-hannemann.com>
What happens when the line width depends on the font-size, such as when width is specified in ems, ch or ex?

– Lea Verou • lea.verou.me • @leaverou

On Aug 19, 2013, at 10:23, Anselm Hannemann <info@anselm-hannemann.com> wrote:

> Hi,
> 
> I wonder if it makes sense and would be possible to implement a technique that 
> adjusts the font-size to fit into an element's line-width.
> 
> This jQuery plugin covers the use-case: http://www.zachleat.com/web/bigtext-makes-text-big/
> Unfortunately it is bound to jQuery and also causes massive repaints in browsers.
> 
> This is why I think it should be done natively within CSS like:
> 
> 	font-size: line-fit;
> 
> Therefore we would need also the following sub-attributes to control (min | max) of the font-size:
> 
> 	min-font-size: 1em;  
> 	max-font-size: 3em;
> 
> I already found some indicators that this topic has already been raised some time ago but didn't find 
> any accurate or clarifying information about it [1] [2].
> 
> [1] http://lists.w3.org/Archives/Public/www-style/1999Mar/0086.html     
> [2] http://my.safaribooksonline.com/book/web-development/css/0130092789/text-properties/ch10lev1sec12
> 
> If you have any hint or opinion on the topic (either way) I would be happy to know about it.
> 
> Cheers, 
> *Anselm | Anselm Hannemann | @helloanselm | helloanselm.com
Received on Tuesday, 20 August 2013 12:35:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 August 2013 12:35:16 UTC