public enum HersheyFont extends Enum<HersheyFont> implements Font<HersheyFont>
Enum Constant and Description |
---|
ASTROLOGY
Hershey Astrology
|
CURSIVE
Hershey Cursive
|
CYRILLIC
Hershey Cyrillic
|
CYRILLIC_1
Hershey Cyrillic 1
|
FUTURA_LIGHT
Hershey Futura Light
|
FUTURA_MEDIUM
Hershey Futura Medium
|
GOTHIC_ENGLISH
Hershey Gothic English
|
GOTHIC_ENGLISH_TRIPLEX
Hershey Gothic English Triplex
|
GOTHIC_GERMAN
Hershey Gothic German
|
GOTHIC_GERMAN_TRIPLEX
Hershey Gothic German Triplex
|
GOTHIC_ITALIAN
Hershey Gothic Italian
|
GOTHIC_ITALIAN_TRIPLEX
Hershey Gothic Italian Triplex
|
GREEK
Hershey Greek
|
GREEK_COMPLEX
Hershey Greek Complex
|
GREEK_SIMPLEX
Hershey Greek Simplex
|
JAPANESE
Hershey Japanese
|
MARKERS
Hershey Markers
|
MATH_LOWER
Hershey Math Lower
|
MATH_UPPER
Hershey Math Upper
|
METEOROLOGY
Hershey Meteorology
|
MUSIC
Hershey Music
|
ROMAN_DUPLEX
Hershey Roman Duplex
|
ROMAN_SIMPLEX
Hershey Roman Simplex
|
ROMAN_TRIPLEX
Hershey Roman Triplex
|
SCRIPT_COMPLEX
Hershey Script Complex
|
SCRIPT_SIMPLEX
Hershey Script Simplex
|
SYMBOLIC
Hershey Symbolic
|
TIMES_BOLD
Hershey Times Bold
|
TIMES_BOLD_ITALIC
Hershey Times Bold Italic
|
TIMES_GREEK
Hershey Greek
|
TIMES_MEDIUM
Hershey Times Medium
|
TIMES_MEDIUM_ITALIC
Hershey Times Medium Italic
|
Modifier and Type | Field and Description |
---|---|
protected org.openimaj.image.typography.hershey.HersheyFontData |
data |
protected String |
name |
Modifier and Type | Method and Description |
---|---|
<T> HersheyFontStyle<T> |
createStyle(ImageRenderer<T,?> renderer)
Create an instance of a FontStyle with the default parameters for the given
image.
|
String |
getName()
Get the name of this font
|
<T,Q extends FontStyle<T>> |
getRenderer(ImageRenderer<T,?> renderer)
Get a font renderer suitable for rendering this font to the given image renderer.
|
static void |
main(String[] args)
Demonstrate the font engine
|
static HersheyFont |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HersheyFont[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HersheyFont ASTROLOGY
public static final HersheyFont CURSIVE
public static final HersheyFont CYRILLIC_1
public static final HersheyFont CYRILLIC
public static final HersheyFont FUTURA_LIGHT
public static final HersheyFont FUTURA_MEDIUM
public static final HersheyFont GOTHIC_ENGLISH_TRIPLEX
public static final HersheyFont GOTHIC_GERMAN_TRIPLEX
public static final HersheyFont GOTHIC_ENGLISH
public static final HersheyFont GOTHIC_GERMAN
public static final HersheyFont GOTHIC_ITALIAN
public static final HersheyFont GOTHIC_ITALIAN_TRIPLEX
public static final HersheyFont GREEK
public static final HersheyFont GREEK_COMPLEX
public static final HersheyFont GREEK_SIMPLEX
public static final HersheyFont JAPANESE
public static final HersheyFont MARKERS
public static final HersheyFont MATH_LOWER
public static final HersheyFont MATH_UPPER
public static final HersheyFont METEOROLOGY
public static final HersheyFont MUSIC
public static final HersheyFont ROMAN_DUPLEX
public static final HersheyFont ROMAN_SIMPLEX
public static final HersheyFont ROMAN_TRIPLEX
public static final HersheyFont SCRIPT_COMPLEX
public static final HersheyFont SCRIPT_SIMPLEX
public static final HersheyFont SYMBOLIC
public static final HersheyFont TIMES_GREEK
public static final HersheyFont TIMES_MEDIUM_ITALIC
public static final HersheyFont TIMES_BOLD_ITALIC
public static final HersheyFont TIMES_MEDIUM
public static final HersheyFont TIMES_BOLD
protected org.openimaj.image.typography.hershey.HersheyFontData data
public static HersheyFont[] values()
for (HersheyFont c : HersheyFont.values()) System.out.println(c);
public static HersheyFont valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic <T,Q extends FontStyle<T>> FontRenderer<T,Q> getRenderer(ImageRenderer<T,?> renderer)
Font
getRenderer
in interface Font<HersheyFont>
T
- type of pixel.Q
- type of FontStyle
.renderer
- the target image renderer.public <T> HersheyFontStyle<T> createStyle(ImageRenderer<T,?> renderer)
Font
createStyle
in interface Font<HersheyFont>
T
- type of pixel.renderer
- the image rendererpublic String getName()
Font
getName
in interface Font<HersheyFont>