W3C home > Mailing lists > Public > public-tt@w3.org > October 2008

tts:fontFamily and quotedString

From: Philippe Le Hegaret <plh@w3.org>
Date: Thu, 16 Oct 2008 20:20:54 -0400
To: public-tt@w3.org
Message-Id: <1224202854.3419.69.camel@localhost>

Section 8.2.9 says:
[[
8.2.9 tts:fontFamily

Values: (<familyName> | <genericFamilyName>) (","  (<familyName> |
<genericFamilyName>))* | inherit

]]

Section 8.3.5 says:
[[
8.3.5 <familyName>

A <familyName> expression specifies a font family name.

If the name contains a whitespace or quotation delimiter character, then
it must be expressed as a <quotedString>.

 <familyName> : <string> | <quotedString>
]]

However, I noticed that some of the tests contain:

 tts:fontFamily="MS Gothic"

Should the string "MS Gothic" be quoted since it contains a whitespace,
and be written as:
 tts:fontFamily='"MS Gothic"'

It seems section 8.3.5 needs to be revised to match [1]. What's the
point of forcing quotes in case of whitespaces when the delimiter for
multiple font names is the comma?

Philippe

[1] http://www.w3.org/TR/CSS21/fonts.html#value-def-family-name
Received on Friday, 17 October 2008 12:53:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 2 November 2009 22:41:35 GMT