<normAutofit>
(Normal AutoFit)
This element specifies that text within the text body should be normally auto-fit to the bounding box. Auto-fitting is when text within a text box is scaled in order to remain inside the text box. If this element is omitted, then <noAutofit>
or auto-fit off is implied.
<p:sp> <p:txBody> <a:bodyPr rtlCol="0" anchor="ctr"> <a:normAutofit fontScale="92000" lnSpcReduction="20000"/> </a:bodyPr> … <a:p> … <a:t>Diagram Object 1</a:t> … </a:p> </p:txBody> </p:sp> <p:sp> <p:txBody> <a:bodyPr rtlCol="0" anchor="ctr"> <a:normAutofit fontScale="92000" lnSpcReduction="20000"/> </a:bodyPr> … <a:p> … <a:t>Diagram Object 2</a:t> … </a:p> </p:txBody> </p:sp>
In the above example there are two shapes that have <normAutofit>
turned on so that when the user types more text within the shape that the text will actually resize to accommodate the new data. For the application to know how and to what degree the text should be resized two attributes are set for the auto-fit resize logic. ]
Parent Elements |
---|
|
Attributes |
Description |
---|---|
|
Specifies the percentage of the original font size to which each run in the text body is scaled. In order to auto-fit text within a bounding box it is sometimes necessary to decrease the font size by a certain percentage. Using this attribute the font within a text box can be scaled based on the value provided. A value of The possible values for this attribute are defined by the ST_TextFontScalePercent simple type (§5.1.12.67). |
|
Specifies the percentage amount by which the line spacing of each paragraph in the text body is reduced. The reduction is applied by subtracting it from the original line spacing value. Using this attribute the vertical spacing between the lines of text can be scaled by a percent amount. A value of Note:
The possible values for this attribute are defined by the ST_TextSpacingPercent simple type (§5.1.12.77). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_TextNormalAutofit">
<attribute name="fontScale" type="ST_TextFontScalePercent" use="optional" default="100000"/>
<attribute name="lnSpcReduction" type="ST_TextSpacingPercent" use="optional" default="0"/>
</complexType>