Skip to content

About

Telugu Font Lab is a tool for customizing Telugu glyphs and fonts for low-cost microcontrollers and embedded displays. Adjust glyph positions, nudges, letter spacing, and line spacing, with multiple fonts, wiring diagrams, and FAQ/usage guides.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🔤 Telugu Font Lab v3

Your Telugu text, perfectly rendered for every microcontroller.

Live Demo License: MIT Vite TypeScript TailwindCSS Microcontrollers


Telugu Font Lab v3 is a high-performance web tool designed for embedded systems developers, IoT engineers, and makers. It converts complex Telugu UTF-8 text (తెలుగు అక్షరాలు) into memory-optimized C header files (.h) and ready-to-flash Arduino sketches (.ino) for monochrome OLED and color TFT displays.


✨ Features

  • 🔡 13+ Pre-Loaded Google Telugu Fonts: Includes Noto Sans Telugu, Dhurjati, Gidugu, Gurajada, Mallanna, Mandali, NTR, Peddana, Ramabhadra, Sree Krushnadevaraya, Suranna, Tenali Ramakrishna, and Timmana, plus custom .ttf/.otf font upload support.
  • ⚙️ Advanced Canvas Typography: Real-time rendering with thresholding, baseline offset, rotation, sub-pixel alignment, and font smoothing controls.
  • 📦 Memory-Optimized Packing Algorithms:
    • Horizontal Packing: MSB First / LSB First bit alignment.
    • Vertical Packing: Page-based memory structure tailored for SSD1306 & SH1106 displays.
    • Bounding-Box Cropping: Automatically clips empty whitespace around glyphs to minimize SRAM & Flash footprint.
    • Run-Length Encoding (RLE): Optional RLE compression for ultra-low flash microcontrollers.
  • 💻 Cross-Platform C Header & Sketch Generator:
    • Compatible with Adafruit_GFX, U8g2, TFT_eSPI, and custom C libraries.
    • Auto-generates complete .ino sketch code with working display initialization.
  • 📺 Interactive OLED Hardware Simulator:
    • Live preview matrix matching SSD1306 (128x64 / 128x32), SH1106, ST7789, ILI9341, and custom display resolutions.
    • Dynamic pixel glow, grid toggle, and OLED contrast simulation.
  • 🔍 Pixel Inspector & Letter Bitmaps:
    • Zoomable grid inspector to inspect individual bit arrays and byte structures.
    • Glyph Bank listing all extracted Telugu ligatures and conjuncts.
  • 🔌 Wiring & Pinout Diagrams:
    • Comprehensive hardware wiring guides for Arduino Uno (ATmega328P), ESP32, STM32 BluePill, and Raspberry Pi Pico (RP2040) over I2C and SPI.
  • 📦 One-Click ZIP Exporter:
    • Export complete project package containing C headers, Arduino sketches, documentation, and bitmap data.

🚀 Quick Start

Prerequisites

  • Node.js (v18.0 or higher recommended)
  • npm or bun

Installation & Local Run

  1. Clone the repository:

    git clone https://github.com/manepalliteja37/telugu-font-lab.git
    cd telugu-font-lab
  2. Install dependencies:

    npm install
  3. Start the local development server:

    npm run dev

    Open your browser at http://localhost:3000.

  4. Build for production:

    npm run build
  5. Typecheck & Lint:

    npm run typecheck

🛠️ Supported Hardware

Platform Microcontroller Typical Display Interface
Arduino ATmega328P / Nano / Mega SSD1306 (128x64) I2C / SPI
ESP32 ESP32-WROOM / ESP32-S3 SH1106 / ST7789 I2C / SPI
STM32 STM32F103C8T6 (BluePill) SSD1306 / ILI9341 I2C / SPI
Raspberry Pi RP2040 / Pico SSD1306 / Waveshare OLED I2C / SPI

📂 Directory Layout

.
├── src/
│   ├── components/               # UI Modules (Simulator, Controls, Wiring, Inspector, Code)
│   │   ├── CodeViewerComponent.ts
│   │   ├── ControlsPanelComponent.ts
│   │   ├── DisplaySimulatorComponent.ts
│   │   ├── ExportDebugPanelComponent.ts
│   │   ├── GeneratorControlsComponent.ts
│   │   ├── GlyphBankComponent.ts
│   │   ├── HardwareTuningComponent.ts
│   │   ├── HeaderComponent.ts
│   │   ├── HelpGuideComponent.ts
│   │   ├── PixelInspectorComponent.ts
│   │   └── WiringGuideComponent.ts
│   ├── lib/                      # Core Bitmapping & Code Generation Logic
│   │   ├── bit-packer.ts         # Bit-level packing algorithms
│   │   ├── c-header-generator.ts # C header formatter & PROGMEM array builder
│   │   ├── exporter.ts           # Zip export generator
│   │   ├── font-loader.ts        # Google Fonts & web font manager
│   │   ├── ino-generator.ts      # Arduino .ino sketch code builder
│   │   ├── preset-manager.ts     # Display & hardware preset configurations
│   │   ├── store.ts              # Centralized reactive state store
│   │   ├── telugu-segmenter.ts   # Telugu grapheme cluster segmenter
│   │   └── validator.ts          # State & input validation logic
│   ├── index.css                 # Tailwind v4 styles & custom scrollbars
│   ├── main.tsx                  # Web application entry point
│   └── types.ts                  # TypeScript interfaces & state models
├── index.html                    # Root HTML document with Google Telugu Fonts pre-warmed
├── package.json                  # Scripts & dependencies
├── tsconfig.json                 # TypeScript compiler setup
├── vite.config.ts                # Vite bundler configuration
└── LICENSE                       # MIT License

💡 How to Use Generated Fonts in Arduino

  1. Open Telugu Font Lab v3 in your browser.
  2. Enter your desired Telugu text (e.g. నమస్కారం or custom sensor values).
  3. Select your preferred Telugu font style, size, and display hardware.
  4. Click on the C Code tab and copy the generated telugu_font.h or download the complete ZIP project package.
  5. Move telugu_font.h into your Arduino sketch directory.
  6. In your .ino sketch:
    #include <Wire.h>
    #include <Adafruit_GFX.h>
    #include <Adafruit_SSD1306.h>
    #include "telugu_font.h"
    
    Adafruit_SSD1306 display(128, 64, &Wire, -1);
    
    void setup() {
      display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
      display.clearDisplay();
      
      // Draw Telugu bitmap onto OLED
      drawTeluguText(&display, 10, 20);
      display.display();
    }
    
    void loop() {}

🤝 Creator & Credits

Created with ❤️ by Telugu Mad Thinker
Assisted by ✨ Google AI Studio

Connect with the author:


📄 License

This project is open-source and licensed under the MIT License.

About

Telugu Font Lab is a tool for customizing Telugu glyphs and fonts for low-cost microcontrollers and embedded displays. Adjust glyph positions, nudges, letter spacing, and line spacing, with multiple fonts, wiring diagrams, and FAQ/usage guides.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages