class Google::Apis::SlidesV1::WeightedFontFamily
Represents a font family and weight used to style a TextRun
.
Attributes
The font family of the text. The font family can be any font from the Font menu in Slides or from [Google Fonts] (fonts.google.com/). If the font name is unrecognized, the text is rendered in `Arial`. Corresponds to the JSON property `fontFamily` @return [String]
The rendered weight of the text. 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]( www.w3.org/TR/CSS21/fonts.html#font-boldness), with non-numerical values disallowed. Weights greater than or equal to `700` are considered bold, and weights less than `700`are not bold. The default value is `400` (“normal”). Corresponds to the JSON property `weight` @return [Fixnum]
Public Class Methods
# File lib/google/apis/slides_v1/classes.rb, line 5202 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/slides_v1/classes.rb, line 5207 def update!(**args) @font_family = args[:font_family] if args.key?(:font_family) @weight = args[:weight] if args.key?(:weight) end