public class AWTTerminalFontConfiguration extends Object
AWTTerminal
. By customizing this class, you can
choose which fonts are going to be used by an AWTTerminal
component and some other related settings.Modifier and Type | Class and Description |
---|---|
static class |
AWTTerminalFontConfiguration.BoldMode
Controls how the SGR bold will take effect when enabled on a character.
|
Modifier | Constructor and Description |
---|---|
protected |
AWTTerminalFontConfiguration(boolean useAntiAliasing,
AWTTerminalFontConfiguration.BoldMode boldMode,
Font... fontsInOrderOfPriority) |
Modifier and Type | Method and Description |
---|---|
static Font[] |
filterMonospaced(Font... fonts)
Given an array of fonts, returns another array with only the ones that are monospaced.
|
static AWTTerminalFontConfiguration |
getDefault()
This is the default font settings that will be used if you don't specify anything
|
static AWTTerminalFontConfiguration |
newInstance(Font... fontsInOrderOfPriority)
Creates a new font configuration from a list of fonts in order of priority.
|
protected static Font[] |
selectDefaultFont() |
protected AWTTerminalFontConfiguration(boolean useAntiAliasing, AWTTerminalFontConfiguration.BoldMode boldMode, Font... fontsInOrderOfPriority)
protected static Font[] selectDefaultFont()
public static AWTTerminalFontConfiguration getDefault()
public static Font[] filterMonospaced(Font... fonts)
fonts
- Fonts to filter monospaced fonts frompublic static AWTTerminalFontConfiguration newInstance(Font... fontsInOrderOfPriority)
fontsInOrderOfPriority
- Fonts to use when drawing text, in order of priorityCopyright © 2016. All rights reserved.