{"uid":"cap_xY0wGVA3cm0UYj4ivreQc","slug":"writerslogic-font-coverage-width-checker-0c7a2553","name":"WritersLogic Font Coverage & Width Checker","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/font-coverage?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":5000,"minLength":1},"fontBase64":{"type":"string","maxLength":2796204,"minLength":8,"description":"Base64 of a .ttf or .otf file (sfnt, not WOFF)."},"fontSizePx":{"type":"number","maximum":2000,"minimum":1,"description":"Needed for a width check."},"maxWidthPx":{"type":"number","maximum":100000,"minimum":0,"description":"Box width; the widest line (split on \\n) must fit."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_vuGXzpjqDTp_jT5gFXvtB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a TrueType or OpenType font (base64-encoded) against a text string to identify missing glyphs and estimate rendered line width in pixels","exampleAgentPrompt":"Before rendering my invoice in NotoSans.ttf, check if the font covers all characters in 'Cześć, привет, مرحبا, 你好!' and whether the text fits within 800 pixels at 16px font size — give me a list of any missing glyphs.","exampleUseCases":[{"title":"Multilingual PDF pre-flight check","prompt":"I'm about to generate a PDF report with Roboto.ttf and the body text includes Chinese, Arabic, and Latin characters. Can you check if Roboto covers all those glyphs and tell me which code points are missing?"},{"title":"Fixed-width label overflow test","prompt":"I'm rendering a product label at 14px using OpenSans.otf in a 320-pixel-wide box. The label text is 'Häagen-Dazs Strawberry & Crème 500g — Best Before 2025'. Does the widest line fit?"},{"title":"Font swap decision for UI localization","prompt":"We're localizing our app UI to Thai and I need to know if our current font file (base64 attached) covers all the characters in this Thai sample text: 'สวัสดีครับ ยินดีต้อนรับ'. List every missing glyph so I can decide whether to swap fonts."}],"resultDescription":"Returns a list of Unicode code points present in the input text that have no corresponding glyph in the font's cmap (formats 4 and 12), plus the sum of hmtx advance widths for all code points (at the given font size) to indicate whether the widest newline-delimited line fits within the specified pixel box. Missing-glyph entries identify exactly which characters will render as tofu or fallback glyphs. Width output is an approximation without kerning, ligatures, or complex shaping applied.","failureModes":["Font file exceeds 2 MB limit — request rejected","Font is WOFF, WOFF2, or a TTC font collection — unsupported format error","Text exceeds 5000 characters — validation error","Base64 is malformed or not a valid sfnt — parse error","Combining marks or complex scripts (Arabic, Devanagari, etc.) produce unreliable width estimates — results flagged as unknown","Offset out of bounds in font binary — bounds-check error returned","fontSizePx or maxWidthPx out of allowed range — validation error"],"whenToPreferThis":"Use this endpoint when an agent needs to pre-flight a specific TTF or OTF font before rendering text — especially to catch missing glyphs in multilingual strings or to verify that text fits a fixed-pixel container without actually rendering. Prefer this over general-purpose font libraries when you need a lightweight, deterministic, bounds-checked cmap and hmtx analysis without a full rendering stack. Not suitable for WOFF/WOFF2, font collections, or scripts requiring complex shaping (Arabic, Indic, etc.) where the width result will be approximate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T06:30:28.702Z","isFirstParty":false,"canonicalSlug":"writerslogic-font-coverage-width-checker-0c7a2553"}