Class FontConfiguration

    • Method Detail

      • fontSize

        public final FontSize fontSize()

        The option that determines the text display size.

        Returns:
        The option that determines the text display size.
      • fontDecoration

        public final FontDecoration fontDecoration()

        Determines the appearance of decorative lines on the text.

        If the service returns an enum value that is not available in the current SDK version, fontDecoration will return FontDecoration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from fontDecorationAsString().

        Returns:
        Determines the appearance of decorative lines on the text.
        See Also:
        FontDecoration
      • fontDecorationAsString

        public final String fontDecorationAsString()

        Determines the appearance of decorative lines on the text.

        If the service returns an enum value that is not available in the current SDK version, fontDecoration will return FontDecoration.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from fontDecorationAsString().

        Returns:
        Determines the appearance of decorative lines on the text.
        See Also:
        FontDecoration
      • fontColor

        public final String fontColor()

        Determines the color of the text.

        Returns:
        Determines the color of the text.
      • fontWeight

        public final FontWeight fontWeight()

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

        Returns:
        The option that determines the text display weight, or boldness.
      • fontStyle

        public final FontStyle fontStyle()

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

        If the service returns an enum value that is not available in the current SDK version, fontStyle will return FontStyle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from fontStyleAsString().

        Returns:
        Determines the text display face that is inherited by the given font family.
        See Also:
        FontStyle
      • fontStyleAsString

        public final String fontStyleAsString()

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

        If the service returns an enum value that is not available in the current SDK version, fontStyle will return FontStyle.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from fontStyleAsString().

        Returns:
        Determines the text display face that is inherited by the given font family.
        See Also:
        FontStyle
      • fontFamily

        public final String fontFamily()

        The font family that you want to use.

        Returns:
        The font family that you want to use.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)