Java Code Examples for sun.font.FontManager#preferLocaleFonts()

The following examples show how to use sun.font.FontManager#preferLocaleFonts() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GraphicsEnvironment.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 2
Source File: GraphicsEnvironment.java    From jdk8u-dev-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 3
Source File: GraphicsEnvironment.java    From jdk-1.7-annotated with Apache License 2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 4
Source File: GraphicsEnvironment.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 5
Source File: GraphicsEnvironment.java    From jdk8u_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 6
Source File: GraphicsEnvironment.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 7
Source File: GraphicsEnvironment.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 8
Source File: GraphicsEnvironment.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 9
Source File: GraphicsEnvironment.java    From Java8CN with Apache License 2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 10
Source File: GraphicsEnvironment.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 11
Source File: GraphicsEnvironment.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 12
Source File: GraphicsEnvironment.java    From Bytecoder with Apache License 2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 13
Source File: GraphicsEnvironment.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 14
Source File: GraphicsEnvironment.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 15
Source File: GraphicsEnvironment.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 16
Source File: GraphicsEnvironment.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 17
Source File: GraphicsEnvironment.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}
 
Example 18
Source File: GraphicsEnvironment.java    From dragonwell8_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Indicates a preference for locale-specific fonts in the mapping of
 * logical fonts to physical fonts. Calling this method indicates that font
 * rendering should primarily use fonts specific to the primary writing
 * system (the one indicated by the default encoding and the initial
 * default locale). For example, if the primary writing system is
 * Japanese, then characters should be rendered using a Japanese font
 * if possible, and other fonts should only be used for characters for
 * which the Japanese font doesn't have glyphs.
 * <p>
 * The actual change in font rendering behavior resulting from a call
 * to this method is implementation dependent; it may have no effect at
 * all, or the requested behavior may already match the default behavior.
 * The behavior may differ between font rendering in lightweight
 * and peered components.  Since calling this method requests a
 * different font, clients should expect different metrics, and may need
 * to recalculate window sizes and layout. Therefore this method should
 * be called before user interface initialisation.
 * @since 1.5
 */
public void preferLocaleFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferLocaleFonts();
}