Class DigitCase
- java.lang.Object
-
- com.adobe.fontengine.inlineformatting.DigitCase
-
public final class DigitCase extends java.lang.ObjectEnumerated values forElementAttribute.digitCase. Some fonts provide multiple digits glyphs: lining digits which work well with uppercase letters, and old style digits which work well with lowercase letters. This class provides constants corresponding to this distinction.
-
-
Field Summary
Fields Modifier and Type Field Description static DigitCaseDEFAULTFonts default.static DigitCaseFROM_TYPOGRAPHIC_CASEDerive the value from theElementAttribute.typographicCaseattribute.static DigitCaseLININGLining digits.static DigitCaseOLD_STYLEOld style digits.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DigitCaseparse(java.lang.String s)java.lang.StringtoString()
-
-
-
Field Detail
-
LINING
public static final DigitCase LINING
Lining digits.
-
OLD_STYLE
public static final DigitCase OLD_STYLE
Old style digits.
-
DEFAULT
public static final DigitCase DEFAULT
Fonts default. This value can be used to request the default case setting, as determined by the font designer.
-
FROM_TYPOGRAPHIC_CASE
public static final DigitCase FROM_TYPOGRAPHIC_CASE
Derive the value from theElementAttribute.typographicCaseattribute. The value is derived as follows:LINING, forTypographicCase.TITLEandTypographicCase.CAPS,DEFAULT, forTypographicCase.NONEOLD_STYLE, for the others values
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
parse
public static DigitCase parse(java.lang.String s)
-
-