jdk/src/java.desktop/share/classes/sun/font/SunFontManager.java
changeset 28059 e576535359cc
parent 26037 508779ce6619
child 29922 7b9c1e1532cf
child 30456 2a753e3fc714
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
   573      * @param font representing a physical font.
   573      * @param font representing a physical font.
   574      * @return true if the underlying font is a TrueType or OpenType font
   574      * @return true if the underlying font is a TrueType or OpenType font
   575      * that claims to support the Microsoft Windows encoding corresponding to
   575      * that claims to support the Microsoft Windows encoding corresponding to
   576      * the default file.encoding property of this JRE instance.
   576      * the default file.encoding property of this JRE instance.
   577      * This narrow value is useful for Swing to decide if the font is useful
   577      * This narrow value is useful for Swing to decide if the font is useful
   578      * for the the Windows Look and Feel, or, if a  composite font should be
   578      * for the Windows Look and Feel, or, if a composite font should be
   579      * used instead.
   579      * used instead.
   580      * The information used to make the decision is obtained from
   580      * The information used to make the decision is obtained from
   581      * the ulCodePageRange fields in the font.
   581      * the ulCodePageRange fields in the font.
   582      * A caller can use isLogicalFont(Font) in this class before calling
   582      * A caller can use isLogicalFont(Font) in this class before calling
   583      * this method and would not need to call this method if that
   583      * this method and would not need to call this method if that
  1609      * The code that registers these fonts needs to "bail" if any
  1609      * The code that registers these fonts needs to "bail" if any
  1610      * of the files do not exist, so it will verify the existence of
  1610      * of the files do not exist, so it will verify the existence of
  1611      * all non-null file names first.
  1611      * all non-null file names first.
  1612      * They are added in to a map with nominally the first
  1612      * They are added in to a map with nominally the first
  1613      * word in the name of the family as the key. In all the cases
  1613      * word in the name of the family as the key. In all the cases
  1614      * we are using the the family name is a single word, and as is
  1614      * we are using the family name is a single word, and as is
  1615      * more or less required the family name is the initial sequence
  1615      * more or less required the family name is the initial sequence
  1616      * in a full name. So lookup first finds the matching description,
  1616      * in a full name. So lookup first finds the matching description,
  1617      * then registers the whole family, returning the right font.
  1617      * then registers the whole family, returning the right font.
  1618      */
  1618      */
  1619     public static class FamilyDescription {
  1619     public static class FamilyDescription {