Interface FontConfiguration.Builder

All Superinterfaces:
Buildable, CopyableBuilder<FontConfiguration.Builder,FontConfiguration>, SdkBuilder<FontConfiguration.Builder,FontConfiguration>, SdkPojo
Enclosing class:
FontConfiguration

public static interface FontConfiguration.Builder extends SdkPojo, CopyableBuilder<FontConfiguration.Builder,FontConfiguration>
  • Method Details

    • fontSize

      FontConfiguration.Builder fontSize(FontSize fontSize)

      The option that determines the text display size.

      Parameters:
      fontSize - The option that determines the text display size.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fontSize

      default FontConfiguration.Builder fontSize(Consumer<FontSize.Builder> fontSize)

      The option that determines the text display size.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to fontSize(FontSize).

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

      FontConfiguration.Builder fontDecoration(String fontDecoration)

      Determines the appearance of decorative lines on the text.

      Parameters:
      fontDecoration - Determines the appearance of decorative lines on the text.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fontDecoration

      FontConfiguration.Builder fontDecoration(FontDecoration fontDecoration)

      Determines the appearance of decorative lines on the text.

      Parameters:
      fontDecoration - Determines the appearance of decorative lines on the text.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fontColor

      FontConfiguration.Builder fontColor(String fontColor)

      Determines the color of the text.

      Parameters:
      fontColor - Determines the color of the text.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fontWeight

      FontConfiguration.Builder fontWeight(FontWeight fontWeight)

      The option that determines the text display weight, or boldness.

      Parameters:
      fontWeight - The option that determines the text display weight, or boldness.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fontWeight

      default FontConfiguration.Builder fontWeight(Consumer<FontWeight.Builder> fontWeight)

      The option that determines the text display weight, or boldness.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to fontWeight(FontWeight).

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

      FontConfiguration.Builder fontStyle(String fontStyle)

      Determines the text display face that is inherited by the given font family.

      Parameters:
      fontStyle - Determines the text display face that is inherited by the given font family.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fontStyle

      FontConfiguration.Builder fontStyle(FontStyle fontStyle)

      Determines the text display face that is inherited by the given font family.

      Parameters:
      fontStyle - Determines the text display face that is inherited by the given font family.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: