Transferred from the Adobe Open Source Subversion Repository
Transferred from the Adobe Open Source Subversion Repository

Revision: 4940
Author:   pfarland@adobe.com
Date:     2009-02-12T18:17:35.223610Z

Log Message: 
-----------
In addressing SDK-17370 two things were apparent. 1. Batik's parsing of @font-face unicode-ranges needed to be fixed (Batik bug 46055). 2. The syntax that Flex suggests for unicode range pairs was not compliant with the CSS2 specification. The second 'U+' is not needed in the range pair.

Incorrect:
    unicode-range:U+00F0-U+00FF;

Correct:
    unicode-range:U+00F0-00FF;

I've patched Batik to support the variants of unicode-ranges syntax and have rebuilt /lib/batik-all-flex.jar using "ant batik" with JDK 1.4.2_12 from the top level trunk ant script,  but I retained support for the legacy (but incorrect) Flex syntax for unicode range pairs.

QE: Yes, can we go over our unicode-range tests and update them to use the correct syntax in unicode-range pairs? Also please review the CSS-2 specification to ensure we've covered the variants of wildcards and range syntax. http://www.w3.org/TR/CSS2/fonts.html#dataqual

Doc: Yes, can we please correct all code examples in our documentation for font embedding unicode-ranges to use the correct syntax for unicode-range pairs?

Checkintests: Pass
mxunit atembed: Pass (legacy Flex 2.0.1 based tests fail, though they fail prior to this change)
Reviewer: Paul
Bugs:
SDK-17370 - [DefineFont4] Inconsistent font embedding behavior between Gumbo and Halo when embedding a single character in a unicode range

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/Scanner.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/flex-config.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/thirdparty/batik/sources/org/apache/batik/css/parser/Parser.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/flash-unicode-table.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/swfutils/src/java/flash/fonts/FontManager.java</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/batik-all-flex.jar</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1290009 13f79535-47bb-0310-9956-ffa450edef68

apache/flex-sdk,SlavaRa/flex-sdk,adufilie/flex-sdk,adufilie/flex-sdk,apache/flex-sdk,shyamalschandra/flex-sdk,SlavaRa/flex-sdk,danteinforno/flex-sdk,danteinforno/flex-sdk,shyamalschandra/flex-sdk,SlavaRa/flex-sdk,shyamalschandra/flex-sdk,adufilie/flex-sdk,danteinforno/flex-sdk,adufilie/flex-sdk,shyamalschandra/flex-sdk,danteinforno/flex-sdk,apache/flex-sdk,SlavaRa/flex-sdk,danteinforno/flex-sdk,apache/flex-sdk,SlavaRa/flex-sdk,adufilie/flex-sdk,SlavaRa/flex-sdk,apache/flex-sdk,shyamalschandra/flex-sdk,apache/flex-sdk,danteinforno/flex-sdk,adufilie/flex-sdk,shyamalschandra/flex-sdk