第三方插件 ComfyUI_Comfyroll_CustomNodes

CR Draw Text

CR Draw Text 286

用于创建包含文本的图像。与CR Overlay Text不同,CR Draw Text不需要输入图像,而是从头创建一个新图像并在其上绘制文本。?️ CR Draw

节点中英文对比

按当前节点配置,分别展示中文与英文节点结构。

中文节点
CR Draw Text
  • IMAGE
  • show_help
  • image_width
    image_height
    text
    font_name
    font_size
    font_color
    background_color
    align
    justify
    margins
    line_spacing
    position_x
    position_y
    rotation_angle
    rotation_options
    font_color_hex
    bg_color_hex
    英文节点
    CR Draw Text
  • IMAGE
  • show_help
  • image_width
    image_height
    text
    font_name
    font_size
    font_color
    background_color
    align
    justify
    margins
    line_spacing
    position_x
    position_y
    rotation_angle
    rotation_options
    font_color_hex
    bg_color_hex

    参数说明

    依据当前节点关联的 `NodesItems` 数据展示输入、输出与控件说明。

    输出参数
    IMAGE IMAGE
    输出的文字图像,包含背景与绘制的文字。
    show_help show_help
    帮助链接,指向节点使用说明文档。
    控件参数
    image_width image_width
    输出图像宽度,单位为像素,范围 64~2048。
    image_height image_height
    输出图像高度,单位为像素,范围 64~2048。
    text text
    要绘制的文字内容,支持多行输入。
    font_name font_name
    从插件目录 /fonts 读取的 .ttf 字体列表。
    font_size font_size
    字体大小,单位为像素,范围 1~1024。推荐在高分辨率画布中使用大号字体确保清晰。
    font_color font_color
    字体颜色,可从内置颜色值中选择。
    background_color background_color
    背景颜色,用于生成图像底色。支持纯色背景输出,可配合透明图层后处理使用。
    align align
    水平对齐方式(如左对齐、居中、右对齐)。
    justify justify
    垂直对齐方式(如顶部、中部、底部)。
    margins margins
    设置文字区域与图像边缘的间距(正值收缩区域,负值扩展)。
    line_spacing line_spacing
    行间距设置,正值增加距离,负值压缩行。
    position_x position_x
    水平位置偏移,单位像素,负值左移,正值右移。
    position_y position_y
    垂直位置偏移,单位像素,负值上移,正值下移。
    rotation_angle rotation_angle
    文本旋转角度,范围 -360~360 度。
    rotation_options rotation_options
    旋转参考点选项,如绕中心、左上角旋转等。
    font_color_hex font_color_hex
    当 font_color 为 "custom" 时使用的十六进制颜色代码(如 #FF0000)。
    bg_color_hex bg_color_hex
    当 background_color 为 "custom" 时使用的十六进制颜色代码。

    详细说明

    结合节点用途、参数和调用方式,给出更完整的说明内容。

    暂无节点说明

    同类节点导航

    继续浏览同一分类下的相邻节点,方便串联学习。