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

Revision: 7467
Author:   pfarland@adobe.com
Date:     2009-06-01T15:10:15.179810Z

Log Message: 
-----------
Removing font face validation so that the requested style is used whether or not it matches what the font describes. This allows font families to be constructed from multiple fonts including those that do not describe their style in the OS/2 table. Note SWF and the Flash Player restriction of only support 4 faces per font family (plain, bold, italic, and bold & italic) still applies.

QE: Yes, please look out for negative test cases for embedded font styles that no longer fail. Also look out for minor font outline differences given that we use AFEFontManager by default for DefineFont3 embedded fonts. If you require the legacy font outlines you can configure the test case to use the BatikFontManager (which has been retained for MPL distributions).
Doc: Yes, we'll release note the relaxed font embedding rules for font faces. I'll annotate the bugs below.
Reviewer: Paul
Bugs:
SDK-14309 - fontWeight should not be restricted
SDK-14308 - fontWeight: bold is required when specifying certain fonts in the CSS file

Modified Paths:
--------------
<path kind="file" action="M">/flex/sdk/trunk/modules/swfutils/src/java/flash/fonts/CachedFontManager.java</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/flex-config.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/MxmlConfiguration.java</path>
<path kind="file" action="M">/flex/sdk/trunk/modules/swfutils/src/java/flash/fonts/BatikFontManager.java</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/modules/swfutils/src/java/flash/fonts/JREFontManager.java</path>
<path kind="file" action="M">/flex/sdk/trunk/lib/flex-fontkit.jar</path>

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

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