java.lang.Object
software.xdev.chartjs.model.options.Font

public class Font extends Object
  • Field Details

    • family

      protected String family
    • size

      protected Number size
    • style

      protected FontStyle style
    • weight

      protected Number weight
    • lineHeight

      protected String lineHeight
  • Constructor Details

    • Font

      public Font()
  • Method Details

    • getFamily

      public String getFamily()
    • setFamily

      public Font setFamily(String family)

      Font family for the scale title, follows CSS font-family options.

      Default "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"

    • getSize

      public Number getSize()
    • setSize

      public Font setSize(Number size)

      Font size for the scale title.

      Default 12

    • getStyle

      public FontStyle getStyle()
    • setStyle

      public Font setStyle(FontStyle style)

      Font style for the scale title, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).

      Default "normal"

    • getWeight

      public Number getWeight()
    • setWeight

      public Font setWeight(Number weight)
    • getLineHeight

      public String getLineHeight()
      See Also:
    • setLineHeight

      public void setLineHeight(String lineHeight)
      Height of an individual line of text