Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 399 Bytes

text.md

File metadata and controls

22 lines (12 loc) · 399 Bytes

Text

.add(text, [opts])

Adds text to the text fragment.

Arguments:

  • str - the string
  • opts - styling options

Options:

Same as doc.text([text], [opts])

.append(text, [opts])

Same as text.add(text, [opts]), but directly appends the text, i.e., adds the text without a space.

.br()

Adds a line break.