class Google::Apis::SlidesV1::Autofit
The autofit properties of a Shape
.
Attributes
The autofit type of the shape. If the autofit type is AUTOFIT_TYPE_UNSPECIFIED, the autofit type is inherited from a parent placeholder if it exists. The field is automatically set to NONE if a request is made that might affect text fitting within its bounding text box. In this case the font_scale
is applied to the font_size and the line_spacing_reduction
is applied to the line_spacing. Both properties are also reset to default values. Corresponds to the JSON property `autofitType` @return [String]
The font scale applied to the shape. For shapes with autofit_type
NONE or SHAPE_AUTOFIT, this value is the default value of 1. For TEXT_AUTOFIT, this value multiplied by the font_size gives the font size that is rendered in the editor. This property is read-only. Corresponds to the JSON property `fontScale` @return [Float]
The line spacing reduction applied to the shape. For shapes with autofit_type
NONE or SHAPE_AUTOFIT, this value is the default value of 0. For TEXT_AUTOFIT, this value subtracted from the line_spacing gives the line spacing that is rendered in the editor. This property is read-only. Corresponds to the JSON property `lineSpacingReduction` @return [Float]
Public Class Methods
# File lib/google/apis/slides_v1/classes.rb, line 156 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/slides_v1/classes.rb, line 161 def update!(**args) @autofit_type = args[:autofit_type] if args.key?(:autofit_type) @font_scale = args[:font_scale] if args.key?(:font_scale) @line_spacing_reduction = args[:line_spacing_reduction] if args.key?(:line_spacing_reduction) end