center

Basic data handling: StringCenter

Centers text within a specified width. This node takes a string and centers it within a field of the specified width. By default, it uses spaces as padding characters, but you can specify any single character to use as padding.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (3)

NameTypeRequired
stringSTRINGrequired
widthINTrequired
fillcharSTRINGoptional

Outputs (1)

NameType
STRINGSTRING