Class DigitCase
- java.lang.Object
-
- com.adobe.fontengine.inlineformatting.DigitCase
-
public final class DigitCase extends java.lang.Object
Enumerated 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 DigitCase
DEFAULT
Fonts default.static DigitCase
FROM_TYPOGRAPHIC_CASE
Derive the value from theElementAttribute.typographicCase
attribute.static DigitCase
LINING
Lining digits.static DigitCase
OLD_STYLE
Old style digits.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DigitCase
parse(java.lang.String s)
java.lang.String
toString()
-
-
-
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.typographicCase
attribute. The value is derived as follows:LINING
, forTypographicCase.TITLE
andTypographicCase.CAPS
,DEFAULT
, forTypographicCase.NONE
OLD_STYLE
, for the others values
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
parse
public static DigitCase parse(java.lang.String s)
-
-