# WritersLogic Font Coverage & Width Checker

> WritersLogic Font Coverage & Width Checker is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-21).

Analyzes a TrueType or OpenType font (base64-encoded) against a text string to identify missing glyphs and estimate rendered line width in pixels

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/font-coverage?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-font-coverage-width-checker-0c7a2553
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xY0wGVA3cm0UYj4ivreQc

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-font-coverage-width-checker-0c7a2553 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-font-coverage-width-checker-0c7a2553/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
