LayoutElementBuilders.FontStyle.Builder

Added in 1.0.0
Deprecated in 1.2.0

public final class LayoutElementBuilders.FontStyle.Builder


Builder for FontStyle

Summary

Public constructors

This method is deprecated. Deprecated in Java

Public methods

@NonNull LayoutElementBuilders.FontStyle

This method is deprecated. Deprecated in Java

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated. Deprecated in Java

@NonNull LayoutElementBuilders.FontStyle.Builder
setItalic(boolean italic)

This method is deprecated. Deprecated in Java

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated. Deprecated in Java

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated. Deprecated in Java

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated. Deprecated in Java

@NonNull LayoutElementBuilders.FontStyle.Builder
setUnderline(boolean underline)

This method is deprecated. Deprecated in Java

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated. Deprecated in Java

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated. Deprecated in Java

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated. Deprecated in Java

@NonNull LayoutElementBuilders.FontStyle.Builder
setWeight(int weight)

This method is deprecated. Deprecated in Java

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated. Deprecated in Java

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.2.0
public Builder()

Public methods

build

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.FontStyle build()

Builds an instance from accumulated values.

setColor

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.FontStyle.Builder setColor(@NonNull ColorBuilders.ColorProp color)

Sets the text color. If not defined, defaults to white.

setItalic

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.FontStyle.Builder setItalic(boolean italic)

Sets whether the text should be rendered in a italic typeface. If not specified, defaults to "false".

setItalic

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.FontStyle.Builder setItalic(@NonNull TypeBuilders.BoolProp italic)

Sets whether the text should be rendered in a italic typeface. If not specified, defaults to "false".

setLetterSpacing

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.FontStyle.Builder setLetterSpacing(@NonNull DimensionBuilders.EmProp letterSpacing)

Sets the text letter-spacing. Positive numbers increase the space between letters while negative numbers tighten the space. If not specified, defaults to 0.

setSize

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.FontStyle.Builder setSize(@NonNull DimensionBuilders.SpProp size)

Sets the size of the font, in scaled pixels (sp). If not specified, defaults to the size of the system's "body" font.

setUnderline

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.FontStyle.Builder setUnderline(boolean underline)

Sets whether the text should be rendered with an underline. If not specified, defaults to "false".

setUnderline

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.FontStyle.Builder setUnderline(@NonNull TypeBuilders.BoolProp underline)

Sets whether the text should be rendered with an underline. If not specified, defaults to "false".

setVariant

Added in 1.0.0
Deprecated in 1.2.0
@TilesExperimental
public @NonNull LayoutElementBuilders.FontStyle.Builder setVariant(int variant)

Sets the variant of a font. Some renderers may use different fonts for title and body text, which can be selected using this field. If not specified, defaults to "body".

setVariant

Added in 1.0.0
Deprecated in 1.2.0
@TilesExperimental
public @NonNull LayoutElementBuilders.FontStyle.Builder setVariant(@NonNull LayoutElementBuilders.FontVariantProp variant)

Sets the variant of a font. Some renderers may use different fonts for title and body text, which can be selected using this field. If not specified, defaults to "body".

setWeight

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.FontStyle.Builder setWeight(int weight)

Sets the weight of the font. If the provided value is not supported on a platform, the nearest supported value will be used. If not defined, or when set to an invalid value, defaults to "normal".

setWeight

Added in 1.0.0
Deprecated in 1.2.0
public @NonNull LayoutElementBuilders.FontStyle.Builder setWeight(@NonNull LayoutElementBuilders.FontWeightProp weight)

Sets the weight of the font. If the provided value is not supported on a platform, the nearest supported value will be used. If not defined, or when set to an invalid value, defaults to "normal".