X-Git-Url: http://git.nikiroo.be/?p=jvcard.git;a=blobdiff_plain;f=src%2Fcom%2Fgooglecode%2Flanterna%2Fterminal%2Fswing%2FSwingTerminalFontConfiguration.java;fp=src%2Fcom%2Fgooglecode%2Flanterna%2Fterminal%2Fswing%2FSwingTerminalFontConfiguration.java;h=0000000000000000000000000000000000000000;hp=7869bbd8ff558a7d098265da4b10833cc84e37e9;hb=f06c81000632cfb5f525ca458f719338f55f9f66;hpb=a73a906356c971b080c36368e71a15d87e8b8d31 diff --git a/src/com/googlecode/lanterna/terminal/swing/SwingTerminalFontConfiguration.java b/src/com/googlecode/lanterna/terminal/swing/SwingTerminalFontConfiguration.java deleted file mode 100644 index 7869bbd..0000000 --- a/src/com/googlecode/lanterna/terminal/swing/SwingTerminalFontConfiguration.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.googlecode.lanterna.terminal.swing; - -import java.awt.*; - -/** - * Font configuration class for {@link SwingTerminal} that is extending from {@link AWTTerminalFontConfiguration} - */ -public class SwingTerminalFontConfiguration extends AWTTerminalFontConfiguration { - /** - * This is the default font settings that will be used if you don't specify anything - */ - public static SwingTerminalFontConfiguration getDefault() { - return newInstance(filterMonospaced(selectDefaultFont())); - } - - /** - * Creates a new font configuration from a list of fonts in order of priority. This works by having the terminal - * attempt to draw each character with the fonts in the order they are specified in and stop once we find a font - * that can actually draw the character. For ASCII characters, it's very likely that the first font will always be - * used. - * @param fontsInOrderOfPriority Fonts to use when drawing text, in order of priority - * @return Font configuration built from the font list - */ - @SuppressWarnings("WeakerAccess") - public static SwingTerminalFontConfiguration newInstance(Font... fontsInOrderOfPriority) { - return new SwingTerminalFontConfiguration(true, BoldMode.EVERYTHING_BUT_SYMBOLS, fontsInOrderOfPriority); - } - - /** - * Creates a new font configuration from a list of fonts in order of priority. This works by having the terminal - * attempt to draw each character with the fonts in the order they are specified in and stop once we find a font - * that can actually draw the character. For ASCII characters, it's very likely that the first font will always be - * used. - * @param useAntiAliasing If {@code true} then anti-aliasing should be enabled when drawing text - * @param boldMode Option to control what to do when drawing text with the bold SGR enabled - * @param fontsInOrderOfPriority Fonts to use when drawing text, in order of priority - */ - public SwingTerminalFontConfiguration(boolean useAntiAliasing, BoldMode boldMode, Font... fontsInOrderOfPriority) { - super(useAntiAliasing, boldMode, fontsInOrderOfPriority); - } -}