warpdotdev/warp · error · SystemExit

Font not found: {font_path}

Error message

Font not found: {font_path}

What it means

Error "Font not found: {font_path}" thrown in warpdotdev/warp.

Source

Thrown at script/patch_font_with_warp_glyph:76

            # Accept 0xE500, E500, or decimal.
            codepoint = int(v, 16) if (v.startswith("0x") or any(c in v.lower() for c in "abcdef")) else int(v)
        elif arg == "--name":
            i += 1
            if i >= len(argv):
                usage(2)
            glyph_name = argv[i]
        else:
            print(f"Unknown argument: {arg}")
            usage(2)

        i += 1

    return font_path, svg_path, codepoint, glyph_name


def patch_font(font_path: str, svg_path: str, codepoint: int, glyph_name: str) -> None:
    if not os.path.exists(font_path):
        raise SystemExit(f"Font not found: {font_path}")

    if not os.path.exists(svg_path):
        raise SystemExit(f"SVG not found: {svg_path}")

    font = fontforge.open(font_path)

    # Create or replace the glyph.
    g = font.createChar(codepoint, glyph_name)
    g.clear()

    # Import the outlines.
    g.importOutlines(svg_path)

    # Clean up and make it robust for rasterization.
    g.removeOverlap()
    g.simplify()
    g.correctDirection()

View on GitHub (pinned to e72fd7aacb)

When it happens

Trigger: Thrown at script/patch_font_with_warp_glyph:76 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of warpdotdev/warp@e72fd7aacb (2026-08-16). Data as JSON: /api/errors/362a24afd27d5eac. Report an issue: GitHub.