For professional work, downloading a "high-quality" version ensures you have access to the full character set, proper spacing (kerning), and vector fidelity (e.g., OpenType or TrueType format).

Confirm licensing terms

@app.get("/api/fonts/slug/preview") def preview(slug: str, text: str = "Sample", size: int = 48): # Load font from storage (local cache or S3) font_path = f"/tmp/slug.ttf" # Use cairo/svgwrite to rasterize to SVG (omitted for brevity) svg_bytes = render_text_to_svg(font_path, text, size) dataurl = f"data:image/svg+xml;base64,base64.b64encode(svg_bytes).decode()" return "image": dataurl

You can find the typeface and licensing options directly on the PSL Type Foundry official website.

Choose the appropriate license (Desktop, Webfont, or App) based on your project needs.