Skip to content

playful1510/ComfyUI_TinyTerraLyNodesMerge

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

363 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽจ ComfyUI TinyTerraLy Nodes

Professional ComfyUI Plotting & Visualization Nodes with Advanced Chinese Typography Support

ComfyUI Compatible Python License Nodes

Enhanced TinyTerra fork with perfect Chinese font rendering and professional typography


๐ŸŒŸ Key Features

โœจ Core Capabilities

  • ๐ŸŽฏ Advanced XY Plotting - Professional grid layout generation
  • ๐Ÿ”ค Perfect Chinese Support - Intelligent font detection & rendering
  • ๐ŸŽจ Complete Style Control - Colors, fonts, and size customization
  • ๐Ÿ“ Precise Layout - Full borders with overlap prevention
  • โšก Plug & Play - Included sample workflow

๐Ÿš€ Technical Advantages

  • ๐Ÿ” 2x Anti-aliasing - Crystal-clear text rendering
  • ๐ŸŒ Cross-platform - Win/Mac/Linux full support
  • ๐Ÿ”ง Smart Adaptation - Perfect ComfyUI latest version compatibility
  • ๐Ÿ“ Suffix Cleanup - Auto-optimized model name display
  • ๐ŸŽ›๏ธ 14-Parameter Control - Pixel-perfect precision

๐Ÿ“ฆ Installation

๐ŸŽฏ Method 1: ComfyUI Manager (Recommended)

  1. Open ComfyUI Manager
  2. Search for "TinyTerraLy" or "ttN"
  3. Click Install and restart ComfyUI

๐Ÿ”ง Method 2: Git Clone

cd ComfyUI/custom_nodes
git clone https://github.com/Ly-scnu/ComfyUI_TinyTerraLyNodes.git
# Restart ComfyUI

๐Ÿ“ Method 3: Manual Download

  1. Download this repository's ZIP file
  2. Extract to ComfyUI/custom_nodes/ComfyUI_TinyTerraLyNodes
  3. Restart ComfyUI

๐ŸŽฌ Preview

Node Interface

Node Interface

Generated Results

Generated Results


๐Ÿš€ Quick Start

๐Ÿ“‹ Complete Workflow Package

๐ŸŽ‰ This plugin includes a complete sample workflow!

๐Ÿ“ View Workflow File โ†’

Usage Steps:

  1. Load Workflow: Drag workflow.json into ComfyUI
  2. Setup Models: Configure your checkpoints and other models
  3. Start Generation: Enjoy professional grid layouts

Workflow Features:

  • โœ… Pre-configured XY plotting setup
  • โœ… Optimized Chinese font parameters
  • โœ… Professional color schemes
  • โœ… Multiple parameter variation examples

๐ŸŽจ Node Usage Guide

Find Nodes: Look for ttN โ†’ xyPlot โ†’ advPlot images in your node browser

Basic Setup:

  1. Connect image grid input
  2. Configure plotting parameters
  3. Adjust font and color settings

๐Ÿ“‹ Node Details

Core Nodes

Node Name Category Description
ttN advPlot images ttN/xyPlot Advanced XY plotting with Chinese font support
ttN advanced xyPlot ttN/xyPlot Enhanced plotting parameter control

Parameter Reference

Parameter Type Default Description
background_color Dropdown "white" Background color selection
text_color Dropdown "black" Text color selection
font_size_mode Dropdown "Auto" Font mode (Auto/Fixed)
x_font_size Slider 32 X-axis font size (12-100)
y_font_size Slider 32 Y-axis font size (12-100)
z_font_size Slider 32 Z-axis font size (12-100)
chinese_font Dropdown "ๆ–นๆญฃไปฟๅฎ‹" Chinese font selection
english_font Dropdown "Times New Roman" English font selection

๐Ÿ”ง Core Improvements

๐ŸŽฏ Major Contribution: Perfect Latest ComfyUI Ecosystem Adaptation

  • ๐Ÿ”ง ComfyUI v0.345+ Full Compatibility - Adapted for 2025 latest version, resolving original incompatibility issues
  • ๐Ÿš€ Nunchaku & Flux Kontext Support - Perfect adaptation for latest AI toolchain
  • ๐ŸŒŸ Forward Compatibility Guarantee - Ensures continued compatibility with future versions

๐ŸŒ Core Pain Points Resolved

Issues with Original Version:

  • โŒ Chinese Display Squares/Garbled - Lack of Chinese font support
  • โŒ Inconsistent Font Sizes - "Large and small" affecting aesthetics
  • โŒ Incomplete Borders - Missing right border
  • โŒ Version Compatibility Issues - Conflicts with new ComfyUI

Our Solutions:

  • โœ… Professional Chinese Font Rendering - Intelligent language detection + FangZheng FangSong font
  • โœ… Unified Font Control System - X/Y/Z axis independent size control, goodbye to clutter
  • โœ… Complete Four-sided Borders - Rewritten layout algorithm ensuring visual integrity
  • โœ… 2x Anti-aliasing Technology - Goodbye to blurry text, enjoy crystal-clear display

โœจ New Feature Highlights

๐ŸŽฏ Chinese Font Support

Personal Need: Improve Chinese model name display

Intelligent Bilingual Font Rendering

  • Automatic Language Detection: Auto-switches Chinese font when Chinese characters >30%
  • Professional Chinese Fonts: FangZheng FangSong/Microsoft YaHei/SimSun/SimHei options
  • Elegant English Fonts: Times New Roman/Arial/Calibri/Consolas options
  • Mixed Text Support: Chinese-English mixed display, best of both worlds

High-Quality Rendering Technology

  • 2x Supersampling Anti-aliasing: Eliminates text edge aliasing, crystal-clear clarity
  • LANCZOS High-Quality Scaling: Ensures sharp effects at any size
  • Smart Suffix Cleanup: Auto-removes .safetensors, .ckpt etc. suffixes

๐ŸŒˆ Color Selection Extensions

Convenience Feature: Provides more background and text color options

Background Color RGB Value Recommended Use Best Text Color
White (255,255,255) Classic light theme Black
Black (0,0,0) Professional dark theme White
Dark Gray (64,64,64) Modern professional style White
Light Gray (192,192,192) Soft neutral theme Black
Blue (70,130,180) Technical demonstrations White

๐Ÿ”ง Font Size Control

Unified Display: Resolves font size inconsistency issues

New Control Options

  • font_size_mode: Auto(original) / Fixed(fixed)
  • x_font_size: X-axis font size (12-100)
  • y_font_size: Y-axis font size (12-100)
  • z_font_size: Z-axis font size (12-100)
  • Overlap Prevention: Auto-adjusts when fonts too large
  • Center Alignment: Label position optimization

๐Ÿ“ฆ Complete Feature Setup (Recommended)

Basic Installation

After installation, basic features are immediately available, including Chinese font support and all core features.

Advanced Font System (Optional)

# Enter plugin directory
cd ComfyUI_TinyTerraLyNodes/fonts

# Install font management system (get FangZheng FangSong and other advanced fonts)
python install_fonts.py

# Preview all available font effects
python font_samples.py

๐Ÿ”ง Compatibility Test Report

Component Version Requirement Test Status Notes
ComfyUI v0.345+ โœ… Full Support 2025 latest version thoroughly tested
Flux Kontext All versions โœ… Enhanced Adaptation Specially optimized compatibility support
Nunchaku All versions โœ… Enhanced Adaptation Perfect support for latest features
Python 3.8+ โœ… Supported Cross-platform compatible
Operating System Win/Mac/Linux โœ… All Platforms Font system auto-adaptation

๐ŸŽฏ Real-World Use Cases

Case 1: Professional Dark Theme Charts

Background: Black
Text Color: White  
Font Mode: Fixed
X-axis Font: 28
Y-axis Font: 28
Chinese Font: FangZheng FangSong
English Font: Times New Roman

Effect: "Black Myth Wukong Style1" displays clearly, uniform font size, professional appearance

Case 2: Chinese-English Mixed Technical Documentation Style

Background: Light Gray
Text Color: Black
Font Mode: Fixed
All Axis Fonts: 24
Chinese Font: Microsoft YaHei
English Font: Calibri

Effect: Suitable for technical documentation, Chinese and English each with distinct characteristics, modern minimalist style


๐Ÿ“‹ Complete Parameter Control Panel

๐ŸŽ›๏ธ advPlot Enhanced Node Parameters (14 Precise Control Items)

Parameter Type Default Description New
enabled Boolean True Node enable switch -
image IMAGE - Input image grid -
image_output Dropdown "Preview" Output mode selection -
save_prefix String "advPlot" Save file prefix -
file_type Dropdown "png" File format -
embed_workflow Boolean True Embed workflow -
background_color Dropdown "Black" Background color โœ… New
text_color Dropdown "White" Text color โœ… New
font_size_mode Dropdown "Auto" Font mode โœ… New
x_font_size Slider 32 X-axis font size (12-100) โœ… New
y_font_size Slider 32 Y-axis font size (12-100) โœ… New
z_font_size Slider 32 Z-axis font size (12-100) โœ… New
chinese_font Dropdown "ๆ–นๆญฃไปฟๅฎ‹" Chinese font selection โœ… New
english_font Dropdown "Times New Roman" English font selection โœ… New

๐Ÿ” Parameter Details

Font Mode Comparison

  • Auto Mode: Original behavior, font size auto-adapts to text length
  • Fixed Mode: Uniform font size, goodbye to "large and small" inconsistency

Smart Protection Mechanisms

  • Overlap Detection: Auto-fallback when fonts too large in Fixed mode
  • Backward Compatibility: Existing workflows need no modification, seamless upgrade
  • Cross-platform Adaptation: Font auto-fallback ensures compatibility

๐Ÿ—๏ธ Extensible Font Management System

๐Ÿ“ Project Structure

ComfyUI_TinyTerraLyNodes/
โ”œโ”€โ”€ fonts/
โ”‚   โ”œโ”€โ”€ font_config.json      # Font configuration core
โ”‚   โ”œโ”€โ”€ install_fonts.py      # Font installation tool
โ”‚   โ”œโ”€โ”€ font_samples.py       # Font preview generator
โ”‚   โ”œโ”€โ”€ README.md            # Font system documentation
โ”‚   โ””โ”€โ”€ FZFSK.TTF            # FangZheng FangSong font file
โ”œโ”€โ”€ ttNpy/                    # Core code
โ””โ”€โ”€ README.md                # Main documentation

โš™๏ธ Advanced User Guide

Adding Custom Fonts

  1. Add Font Files: Copy .ttf files to fonts/ directory
  2. Modify Configuration: Edit fonts/font_config.json
{
  "fonts": {
    "chinese": [
      {"name": "Your Font", "file": "YourFont.ttf"}
    ]
  }
}
  1. Install Fonts: Run python install_fonts.py
  2. Restart ComfyUI: New fonts will appear in dropdown menu

Font Preview Tool

cd fonts/
python font_samples.py
# Generate preview images of all fonts for easy selection

๐Ÿ› ๏ธ Technical Implementation Details

๐Ÿ”ง Major Improvement Methods

๐Ÿš€ Core Technical Innovations

  • Intelligent Language Detection Algorithm - Auto-switch when Chinese characters >30%
  • 2x Supersampling Anti-aliasing - Eliminates text aliasing, crystal-level clarity
  • LANCZOS High-Quality Scaling - Ensures sharp effects at any size
  • Layout Algorithm Reconstruction - Resolves border missing issues

๐Ÿ”ง Engineering Achievements

  • 14-Parameter Precision Control - Pixel-level customization capability
  • Smart Fallback Mechanism - Auto-protection against overlap
  • Cross-platform Font System - Win/Mac/Linux full compatibility
  • Backward Compatible Design - Seamless upgrade guarantee

๐Ÿ› ๏ธ Specific Problem Resolution Comparison

Issue Type Original Status Enhanced Solution Actual Effect
Chinese Display โŒ Squares/Garbled โœ… Smart font selection "Chinese fonts" display perfectly
Font Size โŒ Large-small inconsistency โœ… Fixed mode unified control All labels same size, professional appearance
Layout Borders โŒ Missing right border โœ… Rewritten layout algorithm Complete four-sided borders
File Suffixes โŒ .safetensors display โœ… Smart suffix cleanup "Model1" instead of "Model1.safetensors"
Version Compatibility โŒ New ComfyUI conflicts โœ… v0.345+ full adaptation Zero conflict stable operation

๐ŸŽ“ Learning Achievements & Open Source Spirit

๐Ÿ’ Acknowledgments & Respect

First, our sincere thanks to the original author TinyTerra!

This enhanced version is built entirely on TinyTerra's excellent foundational architecture. We:

  • โœ… Respect Original: Maintain original core functionality integrity
  • โœ… Extend & Enhance: Add new features without breaking original version
  • โœ… Learning-Oriented: Motivated by learning and community contribution
  • โœ… Open Source Giving Back: Share improvements with entire community

๐ŸŽฏ Project Motivation

  • ๐Ÿ“š Learning Practice: Improve programming and UI design skills through actual projects
  • ๐ŸŒ Solve Pain Points: Improve Chinese user experience in ComfyUI
  • ๐Ÿค Community Contribution: Give back learning results to the open source community that helped us
  • ๐Ÿ”ง Technical Exploration: Explore adaptation and optimization of cutting-edge AI tools

๐Ÿš€ Quick Start Guide

Step 1: Install and Restart

cd ComfyUI/custom_nodes
git clone https://github.com/Ly-scnu/ComfyUI_TinyTerraLyNodes.git
cd ComfyUI_TinyTerraLyNodes/fonts
python install_fonts.py  # Install font system
# Restart ComfyUI

Step 2: Test Enhanced Features

  1. Find Node: ttN โ†’ xyPlot โ†’ advPlot images
  2. Recommended Settings:
    ๐Ÿ“ Background: Black
    ๐Ÿ“ Text Color: White
    ๐Ÿ“ Font Mode: Fixed
    ๐Ÿ“ Chinese Font: FangZheng FangSong
    ๐Ÿ“ English Font: Times New Roman
    ๐Ÿ“ All Axis Font Size: 28
    
  3. Test Effect: Use model names containing Chinese, like "Black Myth Wukong Style"

Step 3: Enjoy Professional Results

โœ… Chinese model names display clearly
โœ… Unified coordinated font sizes
โœ… Complete four-sided borders
โœ… Professional color coordination


๐ŸŽ‰ Support Our Learning Journey

๐ŸŒŸ Star This Project

If our enhancements help your workflow, please โญ star this repository to support student learning in open source!

๐Ÿค Contribute

  • Report Issues: Help us learn by reporting bugs
  • Suggest Features: Share ideas for typography and UX improvements
  • Share Fonts: Contribute fonts to our community collection
  • Improve Documentation: Help enhance our learning resources

๐Ÿ’– Original Support

Love the original TinyTerra foundation? Buy TinyTerra a coffee โ˜•


Made with ๐Ÿ’š for learning, sharing, and growing together

๐ŸŽ“ Student Project โ€ข ๐ŸŒ Open Source โ€ข ๐Ÿค Community Driven

GitHub Issues PRs Welcome

About

Enhanced ComfyUI nodes with professional Chinese typography & advanced features (Merged w/ ttN 2.0.9)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 67.3%
  • JavaScript 32.3%
  • CSS 0.4%