ComfyUI-PersianText Introduction
ComfyUI-PersianText is a versatile extension designed to enhance your creative projects by allowing you to create beautifully styled text in Persian (Farsi), Arabic, and English (Latin) scripts. This tool is particularly useful for AI artists who are working on multilingual designs, such as posters or digital art, where the integration of different scripts is essential. The extension provides flexible typography features, enabling you to customize fonts, colors, alignments, and more, ensuring that your text is not only visually appealing but also accurately represents the intended language and style.
How ComfyUI-PersianText Works
At its core, ComfyUI-PersianText functions as a node within the ComfyUI framework, which is a user interface designed for creating and managing complex workflows. This extension specifically focuses on text rendering, allowing you to input text in multiple languages and customize its appearance. The extension handles the complexities of right-to-left (RTL) and left-to-right (LTR) text alignment, ensuring that scripts like Persian and Arabic are displayed correctly. By using custom fonts and styling options, you can create text that seamlessly integrates into your artistic projects.
ComfyUI-PersianText Features
- Multilingual Support: Effortlessly render text in Persian, Arabic, and English with proper RTL/LTR alignment and glyph shaping.
- Custom Fonts: Add your own
.ttfor.otffonts to theFontsfolder, allowing for personalized typography. - Styling Options:
- Dynamic Colors: Choose from a palette or use custom hex codes for text, background, and shadow colors.
- Alignment: Align text horizontally and vertically to fit your design needs.
- Offset and Rotation: Adjust text position with
XandYoffsets and rotate text around its center for precise placement. - Transparent Background: Optionally render text with a transparent background for more flexible design integration.
- Canvas Customization: Define canvas sizes up to 4096x4096 pixels to accommodate various design requirements.
- Shadow Effects: Enhance text with customizable shadow distance, blur intensity, and color.
ComfyUI-PersianText Models
Currently, ComfyUI-PersianText does not include different models. The extension focuses on providing a robust set of features for text rendering and styling within a single framework.
What's New with ComfyUI-PersianText
Version 2.0.0 Updates
- Dual-Language Support: Now you can mix Farsi/Arabic and English text, selecting separate fonts for each language.
- Improved HEX Input: HEX color inputs are now more flexible, accepting values with or without the
#prefix. - Transparent Background: Added the ability to generate text with a transparent background, enhancing design flexibility.
- Bug Fixes: Various minor issues have been resolved to improve overall stability and performance.
Troubleshooting ComfyUI-PersianText
Common Issues and Solutions
- Installation Errors: Ensure that all dependencies, such as
python-bidi, are correctly installed. Follow the detailed installation guide provided in the documentation. - Text Rendering Issues: If text does not display correctly, check that the appropriate fonts are installed and selected for each language.
- Python Version Mismatch: Verify that your Python version is compatible with the extension requirements.
Frequently Asked Questions
- How do I add custom fonts? Place your
.ttfor.otffont files in theFontsfolder within the extension directory. - Can I use this extension for other languages? While primarily designed for Persian, Arabic, and English, the extension may support other languages using similar scripts.
Learn More about ComfyUI-PersianText
For further assistance and to explore more about ComfyUI-PersianText, consider visiting the following resources:
- GitHub Repository: Access the source code, report issues, and contribute to the project.
- YouTube Channel: Watch tutorials and demonstrations to better understand how to use the extension.
- Community Forums: Engage with other AI artists and developers to share tips and get support. By leveraging these resources, you can maximize the potential of ComfyUI-PersianText in your creative projects.
