Stay organized with collections Save and categorize content based on your preferences.
AutofitDescribes the autofit settings of a shape. If a change is made that might affect text fitting within its bounding text box:
AutofitType.NONE
.disableAutofit()
Sets the AutofitType
of a shape to AutofitType.NONE
.
Autofit
— The autofit, for chaining.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
getAutofitType()
Gets the AutofitType
of the shape.
AutofitType
— The autofit type.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
getFontScale()
Gets the font scale applied to the shape. For shapes with AutofitType
AutofitType.NONE
or AutofitType.SHAPE_AUTOFIT
, this value is the default value of 1. For AutofitType.TEXT_AUTOFIT
, the value returned is what the original font size is multiplied by to fit within the shape.
Number
— The font scale.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
getLineSpacingReduction()
Gets the line spacing reduction applied to the shape. For shapes with AutofitType
AutofitType.NONE
or AutofitType.SHAPE_AUTOFIT
, this value is the default value of 0. For AutofitType.TEXT_AUTOFIT
, the returned value is the amount of spacing subtracted from the original spacing to make the text fit within the shape.
Number
— The line spacing.
Scripts that use this method require authorization with one or more of the following scopes:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 UTC."],[[["Autofit settings determine how text adjusts within a shape's boundaries in Google Slides, and when modified, the settings reset to defaults, impacting font scale and line spacing."],["Developers can utilize methods like `disableAutofit()`, `getAutofitType()`, `getFontScale()`, and `getLineSpacingReduction()` to manage the Autofit behavior of shapes programmatically."],["The `getFontScale()` and `getLineSpacingReduction()` methods return default values for shapes with AutofitType.NONE or AutofitType.SHAPE_AUTOFIT, while for AutofitType.TEXT_AUTOFIT, they reflect adjustments made to fit text within the shape."],["All provided methods necessitate authorization with specific scopes like `https://www.googleapis.com/auth/presentations.currentonly` or `https://www.googleapis.com/auth/presentations` for scripts to function correctly."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4