Package com.github.tadukoo.view.font
Enum Class FontFamilies
- All Implemented Interfaces:
FontConstants,Serializable,Comparable<FontFamilies>,Constable
Contains an enumeration of
FontFamilies supported via use of the Tadukoo Fonts project.
This enum includes the logical fonts from Java, some proprietary fonts (which have an open source alternate listed
in case the host does not have the proprietary font), and a collection of open source fonts.- Version:
- Alpha v.0.2
- Author:
- Logan Ferree (Tadukoo)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProprietary Font: Arial - alternate isARIMOOpen Source Font: Arimo - made as an alternate toARIALOpen Source Font: BangersOpen Source Font: Caladea - made as an alternate toCAMBRIAProprietary Font: Calibri - alternate isCARLITOOpen Source Font: CalligraserifProprietary Font: Cambria - alternate isCALADEAOpen Source Font: Carlito - made as an alternate toCALIBRIOpen Source Font: Comic Relief - made as an alternate toCOMIC_SANS_MSProprietary Font: Comic Sans MS - alternate isCOMIC_RELIEFProprietary Font: Courier - alternate isCOUSINEProprietary Font: Courier New - alternate isCOUSINEOpen Source Font: Cousine - made as an alternate toCOURIERLogical Font:Font.DIALOGLogical Font:Font.DIALOG_INPUTOpen Source Font: Gelasio - made as an alternate toGEORGIAProprietary Font: Georgia - alternate isGELASIOProprietary Font: Helvetica - alternate isARIMOOpen Source Font: Leckerli OneOpen Source Font: LobsterLogical Font:Font.MONOSPACEDOpen Source Font: RobotoOpen Source Font: Roboto CondensedLogical Font:Font.SANS_SERIFOpen Source Font: SatisfyProprietary Font: Selawik - alternate isSELAWIKOpen Source Font: Selawik - made as an alternate toSEGOE_UILogical Font:Font.SERIFOpen Source Font: Source Code ProProprietary Font: Tahoma - alternate isWINE_TAHOMAProprietary Font: Times - alternate isTINOSProprietary Font: Times New Roman - alternate isTINOSOpen Source Font: Tinos - made as an alternate toTIMES_NEW_ROMANOpen Source Font: Wine Tahoma - made as an alternate toTAHOMA -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FontFamilyTheFontFamilycontained in this enum valueFields inherited from interface com.github.tadukoo.view.font.FontConstants
BLACK, BLACK_ITALIC, BOLD, BOLD_ITALIC, EXTRA_LIGHT, EXTRA_LIGHT_ITALIC, ITALIC, LIGHT, LIGHT_ITALIC, MEDIUM, MEDIUM_ITALIC, OTF, REGULAR, SEMI_BOLD, SEMI_BOLD_ITALIC, THIN, THIN_ITALIC, TTF -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateFontFamilies(FontFamily family) Creates a FontFamily enumeration with the givenFontFamily -
Method Summary
Modifier and TypeMethodDescriptionstatic FontFamiliesGrab a FontFamily from the enumeration matching the given namestatic FontFamiliesReturns the enum constant of this class with the specified name.static FontFamilies[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DIALOG
Logical Font:Font.DIALOG -
DIALOG_INPUT
Logical Font:Font.DIALOG_INPUT -
MONOSPACED
Logical Font:Font.MONOSPACED -
SANS_SERIF
Logical Font:Font.SANS_SERIF -
SERIF
Logical Font:Font.SERIF -
ARIMO
Open Source Font: Arimo - made as an alternate toARIAL -
ARIAL
Proprietary Font: Arial - alternate isARIMO -
HELVETICA
Proprietary Font: Helvetica - alternate isARIMO -
CARLITO
Open Source Font: Carlito - made as an alternate toCALIBRI -
CALIBRI
Proprietary Font: Calibri - alternate isCARLITO -
CALADEA
Open Source Font: Caladea - made as an alternate toCAMBRIA -
CAMBRIA
Proprietary Font: Cambria - alternate isCALADEA -
COUSINE
Open Source Font: Cousine - made as an alternate toCOURIER -
COURIER
Proprietary Font: Courier - alternate isCOUSINE -
COURIER_NEW
Proprietary Font: Courier New - alternate isCOUSINE -
COMIC_RELIEF
Open Source Font: Comic Relief - made as an alternate toCOMIC_SANS_MS -
COMIC_SANS_MS
Proprietary Font: Comic Sans MS - alternate isCOMIC_RELIEF -
GELASIO
Open Source Font: Gelasio - made as an alternate toGEORGIA -
GEORGIA
Proprietary Font: Georgia - alternate isGELASIO -
SELAWIK
Open Source Font: Selawik - made as an alternate toSEGOE_UI -
SEGOE_UI
Proprietary Font: Selawik - alternate isSELAWIK -
WINE_TAHOMA
Open Source Font: Wine Tahoma - made as an alternate toTAHOMA -
TAHOMA
Proprietary Font: Tahoma - alternate isWINE_TAHOMA -
TINOS
Open Source Font: Tinos - made as an alternate toTIMES_NEW_ROMAN -
TIMES
Proprietary Font: Times - alternate isTINOS -
TIMES_NEW_ROMAN
Proprietary Font: Times New Roman - alternate isTINOS -
BANGERS
Open Source Font: Bangers -
CALLIGRASERIF
Open Source Font: Calligraserif -
LECKERLI_ONE
Open Source Font: Leckerli One -
LOBSTER
Open Source Font: Lobster -
ROBOTO
Open Source Font: Roboto -
ROBOTO_CONDENSED
Open Source Font: Roboto Condensed -
SATISFY
Open Source Font: Satisfy -
SOURCE_CODE_PRO
Open Source Font: Source Code Pro
-
-
Field Details
-
family
TheFontFamilycontained in this enum value
-
-
Constructor Details
-
FontFamilies
Creates a FontFamily enumeration with the givenFontFamily- Parameters:
family- TheFontFamilyfor this enumeration
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getFamily
- Returns:
- The
FontFamilycontained in this enum value
-
fromName
Grab a FontFamily from the enumeration matching the given name- Parameters:
name- The name of theFontFamilyto find- Returns:
- The found FontFamily enumeration, or null if none was found
-