Update readme

This commit is contained in:
chflame163
2024-02-08 08:42:15 +08:00
parent bdc6c9fdfc
commit ee6e972551
2 changed files with 14 additions and 12 deletions
+7 -6
View File
@@ -488,13 +488,13 @@ Generate images and masks from text. support for adjusting the spacing between w
![image](image/text_image_node.png)
Node options:
* size_as<sup>*</sup>: The input image or mask here will generate the output image and mask according to their size.
* size_as<sup>*</sup>: The input image or mask here will generate the output image and mask according to their size. this input takes priority over the width and height below.
* font_file<sup>**</sup>: Here is a list of available font files in the font folder, and the selected font files will be used to generate images.
* spacing: Word spacing.
* leading: Row leading.
* horizontal_border: Side margin. If the text is horizontal, it is the left margin, and if it is vertical, it is the right margin.
* vertical_border: Top margin.
* scale: The overall size of the text. the initial size of text is automatically calculated based on the screen size and text content, with the longest row or column by default adapting to the image width or height. adjusting the value here will scale the text as a whole.
* spacing: Word spacing.this value is in pixels.
* leading: Row leading.this value is in pixels.
* horizontal_border: Side margin. If the text is horizontal, it is the left margin, and if it is vertical, it is the right margin. this value is represents a percentage, for example, 50 indicates that the starting point is located in the center on both sides.
* vertical_border: Top margin. this value is represents a percentage, for example, 10 indicates that the starting point is located 10% away from the top.
* scale: The overall size of the text. the initial size of text is automatically calculated based on the screen size and text content, with the longest row or column by default adapting to the image width or height. adjusting the value here will scale the text as a whole. this value is represents a percentage, for example, 60 represents scaling to 60%.
* variation_range: The range of random changes in characters. when this value is greater than 0, the character will undergo random changes in size and position, and the larger the value, the greater the magnitude of the change.
* variation_seed: The seed for randomly. fix this value to individual characters changes generated each time will not change.
* layout: Text layout. there are horizontal and vertical options to choose from.
@@ -504,6 +504,7 @@ Node options:
* background_color: The color of background.
<sup>*</sup>Only limited to input image and mask. forcing the integration of other types of inputs will result in node errors.
<sup>**</sup>The font folder is defined in resource_dir.ini, this file is located in the root directory of the plugin.
Open the text editing software and find the line starting with "FONT_dir=", after "=", enter the custom folder path name. all font files in this folder will be collected and displayed in the node list during ComfyUI initialization.
If the folder set in ini is invalid, the font folder that comes with the plugin will be enabled.
+7 -6
View File
@@ -476,13 +476,13 @@
![image](image/text_image_node.png)
节点选项说明:
* size_as<sup>*</sup>: 此处输入图像或遮罩,将按照其尺寸生成输出图像和遮罩。
* size_as<sup>*</sup>: 此处输入图像或遮罩,将按照其尺寸生成输出图像和遮罩。注意,此输入优先级高于下面的width和height。
* font_file<sup>**</sup>: 这里列出了font文件夹中可用的字体文件列表,选中的字体文件将被用来生成图像。
* spacing: 字间距。
* leading: 行间距。
* horizontal_border: 侧边边距。如果文字是横排,是左侧边距,竖排则是右侧边距。
* vertical_border: 顶部边距。
* scale: 文字总体大小。文字的初始大小是根据画面尺寸和文字内容自动计算,默认以最长的行或者列适配画面宽或者高。调整此处数值将整体放大和缩小文字。
* spacing: 字间距,以像素为单位。
* leading: 行间距,以像素为单位。
* horizontal_border: 侧边边距。此处数值表示的是百分比,例如50表示起点位于两侧的正中央。如果文字是横排,是左侧边距,竖排则是右侧边距。
* vertical_border: 顶部边距。此处数值表示的是百分比,例如10表示起点位于距顶部10%的位置。
* scale: 文字总体大小。文字的初始大小是根据画面尺寸和文字内容自动计算,默认以最长的行或者列适配画面宽或者高。调整此处数值将整体放大和缩小文字。此处数值表示的是百分比,例如60表示缩放到60%。
* variation_range: 字符随机变化范围。此数值大于0时,字符将产生大小和位置的随机变化,数值越大,变化幅度越大。
* variation_seed: 随机变化的种子。固定此数值,每次产生的单个文字的变化不会改变。
* layout: 文字排版。有横排和竖排可选择。
@@ -492,6 +492,7 @@
* background_color: 背景颜色。
<sup>*</sup>仅限输入image和mask, 如果强制接入其他类型输入,将导致节点错误。
<sup>**</sup>font文件夹在resource_dir.ini中定义,这个文件位于插件根目录下。用文本编辑软件打开,找到“FONT_dir=”开头的这一行,编辑“=”之后为自定义文件夹路径名。这个文件夹里面所有的.ttf和.otf文件将在ComfyUI初始化时被收集并显示在节点的列表中。如果ini中设定的文件夹无效,将启用插件自带的font文件夹。