Class StyleText.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • fontSize

        public StyleText.Builder fontSize​(double size)
        Size of the font (pt)
      • underline

        public StyleText.Builder underline​(boolean underline)
        If true: text should be underlined (default: not)
      • whitespacePre

        public StyleText.Builder whitespacePre​(boolean whitespacePre)
        If set to true: add a "white-space: pre" to the style. In effect, this stops the representation from compressing the whitespace characters, and messing up/removing text that contains newlines, tabs, etc.