Class DigitWidth


  • public final class DigitWidth
    extends java.lang.Object
    Enumerated values for ElementAttribute.digitWidth. Some fonts provide digits in multiple widths: tabular digits all share a single width, and are appropriate for setting in tables, where the digits should be aligned; proportional digits have varying widths and are appropriate for setting in running text. This class provides constants corresponding to this distinction.
    • Field Detail

      • TABULAR

        public static final DigitWidth TABULAR
        Tabular digits.
      • PROPORTIONAL

        public static final DigitWidth PROPORTIONAL
        Proportional digits.
      • DEFAULT

        public static final DigitWidth DEFAULT
        Font’s default. This value can be used to request the default width setting, as determined by the font designer.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • parse

        public static DigitWidth parse​(java.lang.String s)