JDK-6402253 : expose fsType in java.awt.Font
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-03-22
  • Updated: 2010-04-02
  • Resolved: 2006-03-22
Related Reports
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :
The fsType should be exposed as a getter in java.awt.Font.  This value is available in the OS/2 table of TrueType and OpenType fonts.


JUSTIFICATION :
The fsType is supposed to be followed inside of applications that use fonts.

Documents that describe fsType and its expected use:

http://partners.adobe.com/public/developer/en/acrobat/sdk/FontPolicies.pdf
http://www.microsoft.com/typography/otspec/os2.htm



CUSTOMER SUBMITTED WORKAROUND :
Use Batik or another third-party tool for handling fonts.  This makes dealing with system fonts in a way similar to the JDK difficult, however.

Comments
EVALUATION Providing access to the embedding policies is explicitly discussed in the evaluation of 4752644: RFE: Getting a java.awt.Font's FilePath and is part of that overall RFE. At a minimum it would be possible to extract the OS/2 table and read the embedding policy directly. But the RFE also discusses returning an enum for the embedding policy I am therefore closing this RFE as a duplicate of that one which subsumes this one.
22-03-2006