equal
deleted
inserted
replaced
333 * and Korean when laying out text. |
333 * and Korean when laying out text. |
334 */ |
334 */ |
335 public static final int CENTER_BASELINE = 1; |
335 public static final int CENTER_BASELINE = 1; |
336 |
336 |
337 /** |
337 /** |
338 * The baseline used in Devanigiri and similar scripts when laying |
338 * The baseline used in Devanagari and similar scripts when laying |
339 * out text. |
339 * out text. |
340 */ |
340 */ |
341 public static final int HANGING_BASELINE = 2; |
341 public static final int HANGING_BASELINE = 2; |
342 |
342 |
343 /** |
343 /** |
850 * varying sizes, styles, transforms and font features. This |
850 * varying sizes, styles, transforms and font features. This |
851 * method does not close the {@link InputStream}. |
851 * method does not close the {@link InputStream}. |
852 * <p> |
852 * <p> |
853 * To make the <code>Font</code> available to Font constructors the |
853 * To make the <code>Font</code> available to Font constructors the |
854 * returned <code>Font</code> must be registered in the |
854 * returned <code>Font</code> must be registered in the |
855 * <code>GraphicsEnviroment</code> by calling |
855 * <code>GraphicsEnvironment</code> by calling |
856 * {@link GraphicsEnvironment#registerFont(Font) registerFont(Font)}. |
856 * {@link GraphicsEnvironment#registerFont(Font) registerFont(Font)}. |
857 * @param fontFormat the type of the <code>Font</code>, which is |
857 * @param fontFormat the type of the <code>Font</code>, which is |
858 * {@link #TRUETYPE_FONT TRUETYPE_FONT} if a TrueType resource is specified. |
858 * {@link #TRUETYPE_FONT TRUETYPE_FONT} if a TrueType resource is specified. |
859 * or {@link #TYPE1_FONT TYPE1_FONT} if a Type 1 resource is specified. |
859 * or {@link #TYPE1_FONT TYPE1_FONT} if a Type 1 resource is specified. |
860 * @param fontStream an <code>InputStream</code> object representing the |
860 * @param fontStream an <code>InputStream</code> object representing the |
1016 * to retrieve font data. Thus the results are undefined if the file |
1016 * to retrieve font data. Thus the results are undefined if the file |
1017 * is changed, or becomes inaccessible. |
1017 * is changed, or becomes inaccessible. |
1018 * <p> |
1018 * <p> |
1019 * To make the <code>Font</code> available to Font constructors the |
1019 * To make the <code>Font</code> available to Font constructors the |
1020 * returned <code>Font</code> must be registered in the |
1020 * returned <code>Font</code> must be registered in the |
1021 * <code>GraphicsEnviroment</code> by calling |
1021 * <code>GraphicsEnvironment</code> by calling |
1022 * {@link GraphicsEnvironment#registerFont(Font) registerFont(Font)}. |
1022 * {@link GraphicsEnvironment#registerFont(Font) registerFont(Font)}. |
1023 * @param fontFile a <code>File</code> object representing the |
1023 * @param fontFile a <code>File</code> object representing the |
1024 * input data for the font. |
1024 * input data for the font. |
1025 * @return a new <code>Font</code> created with the specified font type. |
1025 * @return a new <code>Font</code> created with the specified font type. |
1026 * @throws IllegalArgumentException if <code>fontFormat</code> is not |
1026 * @throws IllegalArgumentException if <code>fontFormat</code> is not |
1683 strStyle + ",size=" + size + "]"; |
1683 strStyle + ",size=" + size + "]"; |
1684 } // toString() |
1684 } // toString() |
1685 |
1685 |
1686 |
1686 |
1687 /** Serialization support. A <code>readObject</code> |
1687 /** Serialization support. A <code>readObject</code> |
1688 * method is neccessary because the constructor creates |
1688 * method is necessary because the constructor creates |
1689 * the font's peer, and we can't serialize the peer. |
1689 * the font's peer, and we can't serialize the peer. |
1690 * Similarly the computed font "family" may be different |
1690 * Similarly the computed font "family" may be different |
1691 * at <code>readObject</code> time than at |
1691 * at <code>readObject</code> time than at |
1692 * <code>writeObject</code> time. An integer version is |
1692 * <code>writeObject</code> time. An integer version is |
1693 * written so that future versions of this class will be |
1693 * written so that future versions of this class will be |