- Home
- Skills
- Technical Documentation
- ReportLab UTF-8 Font Doctor & Typography Patcher
More screenshots
Works with the AI Agents you already use
ReportLab UTF-8 Font Doctor & Typography Patcher
Audits TrueType fonts, diagnoses Unicode/diacritic encoding traps, and binds hanging orphan words with non-breaking spaces in ReportLab PDF generation.
Free
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)
| Metric | Inspection Result | Benchmark Status |
|---|---|---|
| Active Environment | ReportLab 5.0.1 (Darwin / macOS) | 🟢 Fully Installed |
| TrueType Font Registry | /System/Library/Fonts/Supplemental/Arial.ttf | 🟢 Registered Successfully |
| Diacritic Encoding Test | Zażółć gęślą jaźń — ZAŻÓŁĆ GĘŚLĄ JAŹŃ | 🟢 Verified (0 krzaczkow) |
| Hanging Orphans Detected | 14 dangling prepositions (a, i, o, w, z) | 🔴 Action Required |
| Metric Units Unbound | 8 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 spacew chmurze. - 🔴 Line 7:15 — Detached metric unit
"250 GB"
(Context: "...baza danych o pojemności 250 GB...")
Repaired: Bound with non-breaking space250 GB. - 🔴 Line 12:44 — Conjunction cluster
"i na "
(Context: "...optymalizacja i na bieżąco...")
Repaired: Bound with non-breaking spacesi 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:
- 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 fatalUnicodeEncodeErroror produces black question marks. - 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. - 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. - Table Cell Overflow: Raw string cells inside ReportLab
Tableobjects 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 Ypage 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
Runs 100% locally on system font registries and documents without network egress or API keys.