Visit ComfyUI Online for ready-to-use ComfyUI environment
Generate text along specified paths for dynamic, visually appealing designs.
The CreateTextOnPath
node is designed to allow you to create text that follows a specified path within your artwork. This node is particularly useful for adding dynamic and visually appealing text elements that conform to curves or shapes, enhancing the overall aesthetic of your design. By leveraging this node, you can easily integrate text into complex compositions, ensuring that it aligns perfectly with other graphical elements. This capability is especially beneficial for creating intricate designs, logos, or any artwork where text needs to follow a non-linear trajectory.
This parameter specifies the path coordinates that the text will follow. It is a required input and should be provided as a string. The coordinates define the shape and direction of the path, ensuring that the text aligns correctly along it.
This parameter allows you to input the text that will be displayed along the path. It is a required input and accepts a string value. The default value is 'text', and it supports multiline text, enabling you to create more complex text arrangements.
This parameter defines the width of the frame in which the text will be rendered. It is an integer value with a default of 512, a minimum of 16, and a maximum of 4096. Adjusting this value will impact the overall size and layout of the text within the frame.
This parameter sets the height of the frame for the text rendering. Similar to frame_width
, it is an integer value with a default of 512, a minimum of 16, and a maximum of 4096. This parameter helps in defining the vertical space available for the text.
This parameter specifies the font to be used for the text. It is a required input and should be selected from the list of available fonts in the kjnodes_fonts
directory. The choice of font can significantly affect the visual style and readability of the text.
This parameter determines the size of the font used for the text. It is an integer value with a default of 42. Adjusting the font size can help in achieving the desired emphasis and clarity for the text along the path.
This parameter controls the alignment of the text along the path. It offers three options: 'left', 'center', and 'right', with the default being 'center'. The alignment setting affects how the text is positioned relative to the path coordinates.
This parameter sets the color of the text. It is a string value with a default of 'white'. You can specify any valid color name or hexadecimal color code to match the text color with your design requirements.
This optional parameter allows you to scale the size of the text. It is a float value with a default of [1.0]. By adjusting the size multiplier, you can proportionally increase or decrease the size of the text along the path.
This output parameter provides the rendered image with the text following the specified path. The image can be used directly in your artwork or further processed as needed.
This output parameter generates a mask of the text along the path. The mask can be used for various purposes, such as creating cutouts or applying effects to specific areas of the image.
This output parameter provides an inverted version of the text mask. It can be useful for creating complementary effects or for use in masking operations where the inverse of the text area is required.
size_multiplier
parameter to fine-tune the text size without altering the font size directly.frame_width
and frame_height
parameters to provide adequate space for the text, especially for longer or multiline text.kjnodes_fonts
directory.kjnodes_fonts
directory and that the font name is correctly specified.frame_width
and frame_height
parameters or reduce the font_size
or size_multiplier
to fit the text within the frame.text_color
parameter is not specified in a valid color format.text_color
is a valid color name or hexadecimal color code.© Copyright 2024 RunComfy. All Rights Reserved.