View Source GoogleApi.Docs.V1.Model.WeightedFontFamily (google_api_docs v0.14.0)
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 inArial
. -
weight
(type:integer()
, default:nil
) - The weight of the font. This field can have any value that's a multiple of100
between100
and900
, 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 is400
("normal"). The font weight makes up just one component of the rendered font weight. A combination of theweight
and the text style's resolvedbold
value determine the rendered weight, after accounting for inheritance: If the text is bold and the weight is less than400
, the rendered weight is 400. If the text is bold and the weight is greater than or equal to400
but is less than700
, the rendered weight is700
. If the weight is greater than or equal to700
, the rendered weight is equal to the weight. If the text is not bold, the rendered weight is equal to the weight.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
Functions
Unwrap a decoded JSON object into its complex fields.