Git Product home page Git Product logo

fontless's Introduction

Fontless made by Varld

A simple way to self-host google fonts.

Features

  • โšก๏ธ Lightning Fast - Fontless instances are hosted by Vercel's super fast, global CDN.
  • ๐Ÿš€ Simple Setup - Fontless instances can be configured and deployed in a browser.
  • ๐Ÿ”’ Privacy Oriented - No tracking, no cookies, no analytics. Just fonts.
  • ๐Ÿ˜Ž Google Fonts-like API - All you need to do is to change the hostname. Fontless has full support for the Google Fonts CSS2 API.
  • โ˜๏ธ It's yours - Fontless is open source and self-hosted. You don't have to trust a black box.

Motivation

Let's be honest, we all know that Google uses Google Fonts to collect data. We give them our users data for free and all we want in exchange is a simple way to use webfonts. Fontless aims to provide the same simplicity, but for self-hosted fonts. The web-interface is built to be easy-to-use, even for less tech-savvy people.

Fontless aims to give you the same comfort you get from Google Fonts for self-hosted fonts.

Setup

  1. Visit fontless.varld.co/setup.
  2. Select the fonts you want
  3. Deploy to Vercel right from your browser or download the generated Fontless Service.

Usage

Once you have set up and deployed your Fontless Service, you can visit its domain and select the fonts you want to use. After that you can embed the generated link-tag in your application.

You can also migrate from Google Fonts to Fontless by replacing fonts.googleapis.com with your Fontless Service's hostname. Fontless has full support for the Google Fonts CSS2 API.

How it works

Fontless consists of two parts: Fontless Setup and the Fontless Service.

Fontless Setup

Fontless Setup is a webapp used to configure and deploy a Fontless Service. It periodically requests font data from google-webfonts-helper to provide an up-to-date list of all Google Fonts. After you have configured your Fontless Service, a fontless.config.json-file will be generated. After that the most up-to-date Fontless Service will be downloaded from GitHub. Depending on what you choose the Fontless Service and fontless.config.json will either be zipped and downloaded to your computer or they will be deployed to Vercel.

Fontless Service

The Fontless Service serves all configured fonts. It consists of two parts, a frontend and a serverless function, which implements the Google Fonts CSS2 API.

The Frontend is completely static and generated at build-time.

All fonts are downloaded from Google Fonts at build-time and are placed in the /fonts directory. The build-process also generates a /fonts.json-file which is used by the serverless function and for importing an existing Fontless Service in the Fontless Setup. fonts.json contains a list of all fonts and their variants including the paths where they can be requested.

License

MIT ยฉ Tobias Herber

fontless's People

Contributors

herber avatar esroyo avatar igordillothn avatar manuasir avatar toni299 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.