| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int |
| Modifier and Type | Method and Description |
|---|---|
| public Font2D[] | Returns: the created Font2D instancethe file holding the font data fontFile, int the expected font format fontFormat, boolean whether to retrieve all fonts in the resource or
just the first one. all, boolean true if the file is a copy and needs to be
deleted, false otherwiseCreates a Font2D for the specified font file, that is expected to be in the specified font format (according to the constants in java.awt.Font). |
| public void | |
| public Font2D | |
| public Font2DHandle | Returns: the handle for the derived fontthe font family of the derived font family, int the font style of the derived font style, Font2DHandle the original font (handle) handle)Creates a derived composite font from the specified font (handle). |
| public void | preferLocaleFonts()
Indicates a preference for locale-specific fonts in the mapping of logical fonts to physical fonts. |
| public void | preferProportionalFonts()
preferLocaleFonts() and preferProportionalFonts() are called to inform that the application could be using an alternate set of composite fonts, and so the implementation should try to create a CompositeFonts with this directive in mind. |
| public boolean | Returns: true is the font is successfully registered,
false otherwise.Register a new font. |
| LOGICAL_FALLBACK | back to summary |
|---|---|
| public static final int LOGICAL_FALLBACK | |
| NO_FALLBACK | back to summary |
|---|---|
| public static final int NO_FALLBACK | |
| PHYSICAL_FALLBACK | back to summary |
|---|---|
| public static final int PHYSICAL_FALLBACK | |
| createFont2D | back to summary |
|---|---|
| public Font2D[] createFont2D(File fontFile, int fontFormat, boolean all, boolean isCopy) throws FontFormatException Creates a Font2D for the specified font file, that is expected
to be in the specified font format (according to the constants
in java.awt.Font). The parameter | |
| deRegisterBadFont | back to summary |
|---|---|
| public void deRegisterBadFont(Font2D font2D) | |
| findFont2D | back to summary |
|---|---|
| public Font2D findFont2D(String name, int style, int fallback) The client supplies a name and a style. The name could be a family name, or a full name. A font may exist with the specified style, or it may exist only in some other style. For non-native fonts the scaler may be able to emulate the required style. | |
| getNewComposite | back to summary |
|---|---|
| public Font2DHandle getNewComposite(String family, int style, Font2DHandle handle) Creates a derived composite font from the specified font (handle).
| |
| preferLocaleFonts | back to summary |
|---|---|
| public void preferLocaleFonts() 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. 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.
| |
| preferProportionalFonts | back to summary |
|---|---|
| public void preferProportionalFonts() preferLocaleFonts() and preferProportionalFonts() are called to inform that the application could be using an alternate set of composite fonts, and so the implementation should try to create a CompositeFonts with this directive in mind.
| |
| registerFont | back to summary |
|---|---|
| public boolean registerFont(Font font) Register a new font. Please, note that
| |