Interface IsFont

    • Method Detail

      • setSize

        void setSize​(int size)
        Sets the font size.
        Parameters:
        size - the font size.
      • setStyle

        void setStyle​(FontStyle style)
        Sets the font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
        Parameters:
        style - Font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).
      • setFamily

        void setFamily​(String family)
        Sets the font family, follows CSS font-family options.
        Parameters:
        family - Font family, follows CSS font-family options.
      • setWeight

        void setWeight​(Weight weight)
        Sets the font weight, follows CSS font-style-weight options.
        Parameters:
        weight - font weight, follows CSS font-style-weight options.
      • setLineHeight

        void setLineHeight​(double lineHeight)
        Sets the line height.
        Parameters:
        lineHeight - the line height.
      • setLineHeight

        void setLineHeight​(String lineHeight)
        Sets the line height.
        Parameters:
        lineHeight - the line height.