Font API Service

Self-hosted Google Fonts-like API service

API Endpoints

Font CSS API

GET /css?family=FontName:weight:subset

Example: /css?family=Fira+Code:400,700:latin

Font Preview

GET /preview

Example: /preview

How to Use

<link rel="stylesheet"
      href="https://your-domain/api/fonts/css?family=Roboto:400,700:latin">

<style>
  body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
  }

  h1 {
    font-weight: 700;
  }
</style>