Interface Typography.Builder

  • Method Details

    • fontFamilies

      Typography.Builder fontFamilies(Collection<Font> fontFamilies)

      Determines the list of font families.

      Parameters:
      fontFamilies - Determines the list of font families.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fontFamilies

      Typography.Builder fontFamilies(Font... fontFamilies)

      Determines the list of font families.

      Parameters:
      fontFamilies - Determines the list of font families.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fontFamilies

      Typography.Builder fontFamilies(Consumer<Font.Builder>... fontFamilies)

      Determines the list of font families.

      This is a convenience method that creates an instance of the Font.Builder avoiding the need to create one manually via Font.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to fontFamilies(List<Font>).

      Parameters:
      fontFamilies - a consumer that will call methods on Font.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: