W3C home > Mailing lists > Public > www-style@w3.org > March 2012

Re: [CSS3-fonts] Proposal: Allow a font name as value for font-size-adjust

From: André Luís <me@andr3.net>
Date: Mon, 5 Mar 2012 16:42:06 +0000
Message-Id: <AF6A0E96-F610-40DE-B987-9F3D2BB8D89B@andr3.net>
To: www-style@w3.org

On Mar 5, 2012, at 2:27 PM, Markus Ernst wrote:

> Am 05.03.2012 15:12 schrieb François REMY:
>> How do you want to apply something like that (font-size-adjust: "My
>> fancy font") if your computer don't have the My fancy font
>> installed/downloaded? This is impossible.
> 
> Yes. As I wrote in my suggestion, if the font specified is not known to the system, the font-size-adjust property will be ignored.
> 
> I am sure it is much easier to teach authors to use a well-supported font such as Arial as a reference, than to teach them how to find out the appropriate value for the specific aspect ratio of their first-choice font.


How about following the pattern of multiple-backgrounds and be able to specify one font-size-adjust for each font in the font-stack?

font-family: font1, font2, font3, sans-serif;
font-size-adjust: 0.5, 0.4, 0.7, 0.5;

font1 = 0.5
font2 = 0.4
font3 = 0.7
sans-serif = 0.5

Cheers,
--
André Luís
http://id.andr3.net



> 
>> 
>> -----Message d'origine----- From: Markus Ernst
>> Sent: Monday, March 05, 2012 3:04 PM
>> To: www-style@w3.org
>> Subject: [CSS3-fonts] Proposal: Allow a font name as value for
>> font-size-adjust
>> 
>> Hello
>> 
>> The discussion on "font-size-adjust curiosity", and a discussion in the
>> css-d list made me have a look at the font-size-adjust property. I
>> suggest to add the possibility to add a font name as a value. The
>> x-height of the displayed font would then be adjusted to the x-height of
>> the font specified in font-size-adjust (which will usually be one of the
>> fonts in font-family):
>> 
>> body {
>> font-family: Calibri, "Lucida Grande", Arial, sans-serif;
>> font-size-adjust: Arial;
>> }
>> 
>> Use case (resp. rationale): Web authors are usually not typographical
>> experts, most do not even know about a thing such as aspect ratio. In
>> order to specify the appropriate numeric value for font-size-adjust as
>> specified now, every author needs to look up the correct value for the
>> font of first choice. It would be very much easier for them to just
>> specify, which font out of the font-family list they consider most
>> supported, and thus use as a reference.
>> 
>> Of course misunderstanding authors might write something like:
>> 
>> font-family: "My fancy font", Arial, sans-serif;
>> font-size-adjust: "My fancy font";
>> 
>> Unknown fonts in font-size-adjust will have the effect that the
>> font-size-adjust statement is ignored, which does not more harm than
>> omitting font-size-adjust at all.
>> 
>> Best Regards
>> Markus Ernst
>> 
>> 
>> 
> 
> 

--
André Luís
http://id.andr3.net
Received on Monday, 5 March 2012 16:42:42 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:51 GMT