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

The following examples show how to use sun.font.FontManager#preferProportionalFonts() . 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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
Example 9
Source File: GraphicsEnvironment.java    From Java8CN with Apache License 2.0 2 votes vote down vote up
/**
 * Indicates a preference for proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
Example 12
Source File: GraphicsEnvironment.java    From Bytecoder with Apache License 2.0 2 votes vote down vote up
/**
 * Indicates a preference for proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
Example 15
Source File: GraphicsEnvironment.java    From JDKSourceCode1.8 with MIT License 2 votes vote down vote up
/**
 * Indicates a preference for proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}
 
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 proportional over non-proportional (e.g.
 * dual-spaced CJK fonts) fonts in the mapping of logical fonts to
 * physical fonts. If the default mapping contains fonts for which
 * proportional and non-proportional variants exist, then calling
 * this method indicates the mapping should use a proportional variant.
 * <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.
 * 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 preferProportionalFonts() {
    FontManager fm = FontManagerFactory.getInstance();
    fm.preferProportionalFonts();
}