首页/ 节点库/ Draw Text
第三方插件 ComfyUI_essentials

Draw Text

Draw Text 2026-01-30 收录 778 次浏览

节点中英文对比

ComfyUI 结构对照

按当前节点配置,分别展示中文与英文节点结构。面板按 ComfyUI 实际界面还原: 左侧圆点是输入,右侧圆点与该行最右的名称为输出,下方胶囊是控件参数; 控件两端的三角表示可切换的选项。

中文节点 16 项
Draw Text
img_composite IMAGE
遮罩
text —
font —
size —
color —
background_color —
shadow_distance —
shadow_blur —
shadow_color —
horizontal_align —
vertical_align —
offset_x —
offset_y —
direction —
英文节点 16 项
Draw Text
img_composite IMAGE
MASK
text —
font —
size —
color —
background_color —
shadow_distance —
shadow_blur —
shadow_color —
horizontal_align —
vertical_align —
offset_x —
offset_y —
direction —
模型 条件 / 数值 Latent 其它类型 左圆点 = 输入,右圆点 = 输出 可切换选项 — 未设置默认值

面板用于对照参数位置与命名,不做交互;实际节点外观以 ComfyUI 内的主题为准。

参数说明

输入 1 · 输出 2 · 控件 13

依据当前节点关联的 NodesItems 数据,按输入、输出、控件三类分别列出名称与说明。

输入参数 1 项
img_composite img_composite
可选参数,若提供该图像,则文字将叠加绘制在该图像上;否则在透明背景上绘制。
输出参数 2 项
IMAGE IMAGE
输出绘制完文字的图像
遮罩 MASK
文字区域的遮罩图(白色部分为文字,黑色为背景)。
控件参数 13 项
text text
输入要绘制的文字 默认值:"Hello, World!"
font font
用户可选字体。 从custom_nodes\ComfyUI_essentials\fonts文件夹下选择.ttf 或 .otf文件
size size
文字大小 默认值:56 范围:1 ~ 9999
color color
文字颜色(HEX 格式) 默认值:#FFFFFF
background_color background_color
文字绘制区域背景颜色。 默认值:#00000000(全透明背景)。
shadow_distance shadow_distance
文字阴影偏移距离。 默认值:0
shadow_blur shadow_blur
文字阴影模糊程度。 默认值:0
shadow_color shadow_color
阴影颜色。 默认值:#000000
horizontal_align horizontal_align
水平对齐方式。 ["left", "center", "right"]
vertical_align vertical_align
垂直对齐方式。 ["top", "center", "bottom"]
offset_x offset_x
x轴偏移量
offset_y offset_y
y轴偏移量
direction direction
文字方向 "ltr":从左向右 "rtl":从右向左

节点详解

原理 · 用法 · 常见问题
暂无节点说明

常见问题

按节点参数整理
Draw Text有哪些输入参数?
共 1 个输入,包括 img_composite(img_composite)。
Draw Text的输出是什么?
共 2 个输出:IMAGE(IMAGE)、遮罩(MASK)。
Draw Text有哪些可调参数?
共 13 个控件参数,包括 text(text)、font(font)、size(size)、color(color)、background_color(background_color)、shadow_distance(shadow_distance)。
Draw Text属于哪个节点包?
属于「ComfyUI_essentials」,节点分类为「第三方插件」。

同类节点

ComfyUI_essentials