Font Preview
API Usage

You can access the SVG preview via the /api/font endpoint at https://studio--fontview-cdn.us-central1.hosted.app.

Use the following query parameters:
  • fontName: The name of the Google Font (e.g., "Open Sans").
  • text: The text to be rendered (e.g., "FontView CDN"). If no text is provided, the font name will be used as the default text.

Example:

The SVG for a font is stored and cached so you can request it from this app via HTTP endpoint. The app uses a simple in-memory cache (svgCache) to store previously generated SVGs. Before generating an SVG, it checks if the SVG for the given font name and text combination already exists in the cache. If it does, the cached SVG is returned directly.