typograph-editor-documentation
    Preparing search index...

    Function setCapitalization

    • Letter case on the selection, or on the whole story when nothing is selected — the same run override path underline and super/subscript take.

      'normal' is written rather than the property being cleared. A run that says nothing inherits its paragraph style, so clearing all caps on text whose style applies it would turn the capitals straight back on; saying 'normal' is how a run cancels what it inherited (TYP-663).

      Parameters

      • value: "normal" | "all_caps"

      Returns boolean