docx
    Preparing search index...

    Function createFitText

    • Creates the fitting of a run's text to a width (w:fitText).

      Word writes an ID for each piece of fitted text, and fits runs without one unreliably: two of them next to each other together, and some not at all. So a run without a group is given an ID of its own.

      A width given as a measure is written in twips, as Office's schemas allow only a whole number of them, though the standard's allow a measure.

      <xsd:complexType name="CT_FitText">
      <xsd:attribute name="val" type="s:ST_TwipsMeasure" use="required"/>
      <xsd:attribute name="id" type="ST_DecimalNumber" use="optional"/>
      </xsd:complexType>

      Parameters

      Returns XmlComponent

      createFitText({ width: 1440, group: 1 });