More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    ReportLab UTF-8 Font Doctor & Typography Patcher

    1

    Audits TrueType fonts, diagnoses Unicode/diacritic encoding traps, and binds hanging orphan words with non-breaking spaces in ReportLab PDF generation.

    Free

    1 useSecurity scanned
    ReportLab UTF-8 Font Doctor & Typography Patcher

    ReportLab UTF-8 Font Doctor & Typography Patcher

    Example session with this skill installed

    Diagnose my ReportLab setup for Polish UTF-8 diacritics, patch hanging prepositions in docs/raport.md, and generate a bulletproof boilerplate script with dynamic page numbering.

    • Read your context and instructions
    • Compiled the reportlab utf-8 font

    🩺 REPORTLAB UTF-8 FONT DOCTOR — Typography & Pre-Flight Inspection (v1.0.0)

    MetricInspection ResultBenchmark Status
    Active EnvironmentReportLab 5.0.1 (Darwin / macOS)🟢 Fully Installed
    TrueType Font Registry/System/Library/Fonts/Supplemental/Arial.ttf🟢 Registered Successfully
    Diacritic Encoding TestZażółć gęślą jaźń — ZAŻÓŁĆ GĘŚLĄ JAŹŃ🟢 Verified (0 krzaczkow)
    Hanging Orphans Detected14 dangling prepositions (a, i, o, w, z)🔴 Action Required
    Metric Units Unbound8 instances (e.g. 500 GB, 35 USD)🔴 Action Required

    🔍 Identified Typographic Risks & Auto-Repairs:

    • 🔴 Line 4:28 — Dangling preposition "w " at end of line
      (Context: "...wdrożono architekturę w chmurze...")
      Repaired: Bound with non-breaking space w chmurze.
    • 🔴 Line 7:15 — Detached metric unit "250 GB"
      (Context: "...baza danych o pojemności 250 GB...")
      Repaired: Bound with non-breaking space 250 GB.
    • 🔴 Line 12:44 — Conjunction cluster "i na "
      (Context: "...optymalizacja i na bieżąco...")
      Repaired: Bound with non-breaking spaces i na bieżąco.
    [GENERATED REPORTLAB BOILERPLATE: build_pdf.py]
    • TrueType TTFont registered: Arial (Regular, Bold, Italic)
    • Dynamic NumberedCanvas enabled: calculates total page count on Pass 2 ('Strona X z Y')
    • Auto-wrapping Paragraph cells injected into all ReportLab Table rows
    • Clean Light Mode styling: Header rule at Y=800, Footer rule at Y=45
    

    Connects securely to your tools. The creator never sees your data.

    About this skill

    ReportLab UTF-8 Font Doctor & Typography Patcher

    Tired of ReportLab crashing on European diacritics, spitting out unreadable black boxes (krzaczki) instead of Polish/German letters, or leaving single-letter prepositions dangling at the end of lines?

    The ReportLab UTF-8 Font Doctor & Typography Patcher is a lightweight, zero-dependency diagnostic CLI tool and agent skill designed to audit system TrueType fonts, test multi-language Unicode encodings, bind orphan words with  , and generate production-ready PDF compilation scripts.

    ⚠️ The Problem: ReportLab's Default Typography Traps

    When developers and AI agents build PDFs using standard ReportLab code, they hit critical production roadblocks:

    1. The PostScript Trap: Default fonts (Helvetica, Times-Roman, Courier) are standard 14 Adobe Type 1 fonts that only map WinAnsi / Latin-1. Attempting to render Central European characters (ą, ć, ę, ł, ń, ó, ś, ź, ż, č, ř) throws fatal UnicodeEncodeError or produces black question marks.
    2. Missing Cross-Platform Paths: Font paths differ drastically across macOS (/System/Library/Fonts/Supplemental), Linux (/usr/share/fonts/truetype), and Windows (C:\Windows\Fonts). Hardcoded paths break CI/CD pipelines.
    3. Hanging Prepositions (Orphan Words): Single characters (a, i, o, u, w, z) and detached metrics (500 GB, 29 PLN) left at the end of lines violate rigorous publishing standards.
    4. Table Cell Overflow: Raw string cells inside ReportLab Table objects cannot word-wrap, breaking document margins.

    ⚡ The Solution: Automated Font Discovery & Typography Patcher

    The ReportLab Font Doctor provides an end-to-end audit and repair engine:

    • Automated TrueType Discovery: Seamlessly identifies, validates, and registers available system fonts across macOS, Linux, and Windows into unified regular, bold, and italic families.
    • Pre-Flight Diacritic Scanner: Scans raw text and markdown files before PDF builds, categorizing diacritic groups (Polish, German, French, Nordic) and calculating encoding risk.
    • Typographic Orphan Patcher: Replaces loose trailing spaces following 1-letter prepositions and metric units with non-breaking spaces (  or \u00A0).
    • Two-Pass NumberedCanvas Generator: Automatically writes clean boilerplate scripts with dynamic Page X of Y page numbering and wrapped paragraph table cells.

    🛠️ What's Included:

    • scripts/reportlab_font_doctor.py — Fast, zero-dependency Python 3.10+ CLI tool.
    • SKILL.md — Lean Core (<40 lines) agent skill for Claude Code, Cursor, Windsurf, and Antigravity.
    • references/typography_and_diacritics_matrix.md — Exhaustive font resolution tables, glyph encodings, and publishing benchmarks.

    🔒 100% Client-Side Privacy:

    Executes completely offline in local memory. No telemetry, no external API calls, zero risk to proprietary documentation or source code.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Technical Documentation.

    Requires local .ttf files on the host system. Does not support OTF or variable fonts. Typography patching is optimized for markdown and plain text inputs.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    1 use

    Times used to date

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 27 days ago

    • Free with an Agensi account

    Software
    Python 3Terminal

    Permissions

    Terminal / Shell
    Read Files
    Write Files

    Runs 100% locally on system font registries and documents without network egress or API keys.

    Listed27 days ago

    What's inside

    Frequently Asked Questions

    This skill automates the registration of TrueType fonts and provides a diagnostic layer to prevent 'ReportLab Error: Can\'t find font' crashes when processing Unicode characters or European diacritics.

    It is compatible with any AI agent capable of executing Python scripts or generating code, including ChatGPT, Claude, and local AutoGPT instances running in a ReportLab environment.

    The skill includes a diagnostic scanner, an orphan-word binding utility for cleaner typography, and a boilerplate generator that produces production-ready Python registration code.

    No, this skill is designed to work with your existing system .ttf files; it scans your local environment to identify and map the fonts already available to your OS for use in PDFs.

    Orphan binding automatically replaces standard spaces after single-letter words (like 'a' or 'I') with non-breaking spaces, ensuring these words never sit alone at the end of a printed line.

    The skill is optimized for standard TrueType (.ttf) fonts and does not currently support OpenType (.otf) or variable font formats.

    New in Technical Documentation

    Free