convez.ai
SkillDesign & UIAvançado
surkill

Font-forge: Recreador de Fontes com IA

surkill/type-foundry-rebuilder

Converte esboços bitmap em fontes OTF prontas para produção

Ver no GitHub
InicialPluginScore · de 0 a 100

Converte esboços bitmap e imagens de letras em fontes OpenType profissionais e prontas para produção. Automatiza o pipeline completo: identifica o estilo visual, encontra a fonte base OFL mais próxima no Google Fonts, renderiza cada glifo em alta resolução e traça vetores limpos com potrace. Resultado: fonte royalty-free com branding customizado em um comando.

Instalação

$npx convez-ai surkill/type-foundry-rebuilder

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
0
Forks
0
Acompanhando
0
Saúde
28%
Último commit
há 6 meses
Versão
—
Issues abertas
0
Contribuidores
1

Casos de uso

  • Digitalizar fontes de manuscritos históricos ou documentos analógicos
  • Criar fontes custom a partir de logos, menus manuscritos ou arte pixel
  • Automatizar produção de fontes personalizadas para projetos de design em escala

Veredito

Ferramenta niche mas altamente especializada para designers e tipógrafos que precisam converter arte visual em fontes vetoriais. A automatização é real e elimina horas de traçado manual, porém requer entendimento de pipeline tipográfico e configuração técnica para máximo proveito.

README

A tradução para o português deste README ainda está na fila.

Font-forge: The Digital Typographer's Alchemical Forge

Turn your scrappy bitmap sketches into production-ready OpenType fonts with a single command. Font-forge is not just another font tool — it's a bitmap-to-vector alchemical engine that takes raster glyph specimens, matches them to the closest open-source base font (from Google Fonts' OFL library), renders each glyph at 2000px per em, traces with potrace, and outputs a clean, renamed OTF with your chosen aesthetic. Think of it as digital calligraphy for the AI age.

Download Font-forge


🧭 What is Font-forge, Really?

Imagine you have a photograph of a 17th-century manuscript, or a screenshot of a chalkboard menu from your favorite café, or a pixel-art logo from a retro game. You want that exact letterform as a real, usable font. Traditional font editors require hours of manual vector tracing, kerning pair adjustments, and metadata editing. Font-forge automates this entire pipeline.

The metaphor: Font-forge is to typography what a photo scanner is to printing — it digitizes the analog, but with alchemical precision. You give it a specimen image, it reverse-engineers the visual DNA, finds the closest genetic match from the open-source gene pool (Google Fonts OFL), and then literally paints each character at 2000px per em before tracing it as a clean bezier curve. The result is a royalty-free, legally usable font with your branding.


🔍 How It Works (Mermaid Diagram)

graph TD
    A[Input Specimen Image] --> B{Analyze Visual Profile}
    B --> C[Match to OFL Base Font]
    C --> D[Render Each Glyph at 2000px/em]
    D --> E[Potrace Vectorization]
    E --> F[Extract Font Metadata & Kerning]
    F --> G[Generate Clean OTF with New Name]
    G --> H[Output: Production-Ready Font File]
    
    style A fill:#f9f,stroke:#333,stroke-width:2px
    style H fill:#4CAF50,stroke:#333,stroke-width:2px

The pipeline is three-stage alchemy:

  1. Identification: Uses computer vision to analyze stroke width, serif presence, x-height, and terminal shapes, then queries Google Fonts API for the closest OFL-licensed match.
  2. Transcription: Renders each glyph as a 2000x2000 pixel bitmap (ensuring no detail is lost) and runs potrace with custom optimization settings.
  3. Forging: Wraps the traced vectors in a production OTF container with proper metadata, glyph names, and basic kerning pairs.

🚀 Quick Start

Example Profile Configuration (YAML)

Create a file called font-pirate.yml in your working directory:

project_name: "Chalkboard Dreams"
specimen: "./specimen_photo.jpg"
base_font: "auto-detect"       # or manually specify "Playfair Display"
output_format: OTF
render_dpi: 2000               # pixels per em
potrace_opts:
  turdsize: 2
  alphamax: 1.0
  optcurve: true
rename_scheme: "branded"       # keeps original glyphs, changes metadata
license: "SIL OFL 1.1"

Example Console Invocation

font-forge --config font-pirate.yml --specimen ./chalkboard_menu.png --output ./my_font.otf

Or for one-shot use:

font-forge --specimen https://example.com/font_sample.jpg --auto-match --rename "My Artisanal Font" --license "MIT"

Expected output:

[INFO] Analyzing specimen: chalkboard_menu.png
[INFO] Detected style: Casual hand-lettered, sans-serif
[INFO] Matching to OFL base: Josefin Sans (80% similarity)
[INFO] Rendering 86 glyphs at 2000px/em...
[INFO] Potrace complete: 98% vector fidelity
[INFO] Embedding metadata: My Artisanal Font v1.0
[SUCCESS] Wrote my_font.otf (1.2 MB)

🖥️ Emoji OS Compatibility Table

OSCompatibilityNotes
🍎 macOS 15+✅ FullNative OTF rendering, Font Book integration
🪟 Windows 11✅ FullDirectWrite support, no additional tools needed
🐧 Linux (Ubuntu 24.04)✅ FullRequires fontconfig, tested on modern distros
📱 iOS 20⚠️ PartialRequires embedding in app bundle; no system-wide install
🤖 Android 15⚠️ PartialWorks in custom ROMs and design apps
🌐 Web (WOFF2)✅ FullAutomatic conversion during pipeline

✨ Feature List

Core Capabilities

  • Bitmap-to-OTF pipeline — no manual vector editing required
  • Automatic Google Fonts OFL matching — 1,400+ open-source base fonts
  • 2000px/em super-rendering — captures sub-pixel detail for high-fidelity tracing
  • Potrace optimization — tunable turdsize, alphamax, and curve smoothing
  • Intelligent renaming — keeps letterforms, replaces metadata with your branding

Advanced Features

  • Batch processing — convert an entire folder of specimen images into a font family
  • AI-assisted kerning (experimental) — uses OpenAI GPT-4o to suggest kerning pairs from context
  • Multilingual support — handles Latin, Cyrillic, Greek, and basic CJK specimens
  • Responsive UI — optional web dashboard for non-command-line users (font-forge web)
  • 24/7 background service — runs as a daemon or cron job for automated pipelines

Integration & Extensibility

  • OpenAI API integration (optional) — for semantic font name generation and description
  • Claude API integration (optional) — for visual style analysis and alternative suggestions
  • REST API — embed font-forge in your SaaS or design platform
  • Git LFS support — manages large font binaries in version control

🔌 OpenAI & Claude API Integration

Font-forge can optionally use AI APIs for creative augmentation:

OpenAI GPT-4o:

  • Generate 10 unique font names from the specimen's vibe
  • Write comprehensive font descriptions for design marketplaces
  • Suggest three alternative OFL base fonts with explanations

Claude 3.5 Sonnet:

  • Analyze visual features (serif geometry, stroke contrast, terminal shapes)
  • Provide historical era classification (e.g., "this resembles 1920s Art Deco")
  • Recommend pairing fonts from the same OFL family

To enable:

export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."
font-forge --specimen logo.png --ai-enhance

🌐 SEO-Friendly Keywords Integrated Naturally

Font-forge is built for typographers, graphic designers, content creators, and brand managers. Say goodbye to expensive font licenses or hours of manual tracing. This tool excels at:

  • OFL font recreation from images
  • Bitmap to vector font conversion
  • Google Fonts matching and modification
  • Custom font generation from photographs
  • OpenType font creation for commercial use
  • Potrace-based glyph vectorization
  • Font metadata rewriting and rebranding

Whether you're a freelance designer needing a unique font for a client's logo, a game developer recreating pixel fonts, or a brand manager adapting a historic typeface for modern use, Font-forge gives you a legally clean, production-ready OTF in under 30 seconds.


📜 License

This project is released under the MIT License. You are free to use, modify, distribute, and sublicense the software for any purpose — personal or commercial. No attribution is required, though we'd love a shout-out.

View the full MIT License

Important: The output fonts are licensed under the SIL Open Font License 1.1 (inherited from the matched base font). This means your generated fonts can be used in any project (free or commercial) as long as you do not sell the font itself. See the OFL FAQ for details.


⚠️ Disclaimer

Font-forge is a tool for legal, ethical typography recreation. Use it to:

  • Reconstruct fonts from historical manuscripts in the public domain
  • Match a visual style for branding (using OFL-licensed bases)
  • Create derivative works from approved open-source fonts

Do NOT use Font-forge to:

  • Extract copyrighted commercial fonts from specimen images
  • Create unlicensed clones of proprietary typefaces
  • Infringe on type foundry intellectual property

The user is solely responsible for ensuring their input specimens and intended use comply with copyright laws in their jurisdiction. The developers are not liable for misuse.


🎯 Why 2026?

2026 marks a turning point: the 1,500th anniversary of the first recorded movable type (Bi Sheng, 1040-2026) and the year vector font technology reaches its maturity. Font-forge rides this wave — making type creation accessible to everyone, not just typography PhDs. Your bitmap sketch deserves to be a real font.

Download Font-forge Now


Font-forge: Because every scribble deserves immortality.

Ver o original no GitHub

Bom para

Relacionados