google_api_docs v0.4.0 GoogleApi.Docs.V1.Model.WeightedFontFamily View Source

Represents a font family and weight of text.

Attributes

  • fontFamily (type: String.t, default: nil) - The font family of the text.

    The font family can be any font from the Font menu in Docs or from [Google Fonts] (https://fonts.google.com/). If the font name is unrecognized, the text is rendered in Arial.

  • weight (type: integer(), default: nil) - The weight of the font. This field can have any value that is a multiple of 100 between 100 and 900, inclusive. This range corresponds to the numerical values described in the CSS 2.1 Specification, section 15.6, with non-numerical values disallowed.

    The default value is 400 ("normal").

    The font weight makes up just one component of the rendered font weight. The rendered weight is determined by a combination of the weight and the text style's resolved bold value, after accounting for inheritance:

    • If the text is bold and the weight is less than 400, the rendered weight is 400.
    • If the text is bold and the weight is greater than or equal to 400 but is less than 700, the rendered weight is 700.
    • If the weight is greater than or equal to 700, the rendered weight is equal to the weight.
    • If the text is not bold, the rendered weight is equal to the weight.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Docs.V1.Model.WeightedFontFamily{
  fontFamily: String.t(),
  weight: integer()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.