A simple font server with the ability to serve distinct locale specific fonts.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
server
static/fonts
test/sample-config
.awsbox.json
.gitignore
LICENSE
README.md
package.json

README.md

node-font-server

A simple font server with the ability to serve browser/locale specific fonts.

Installation

  1. clone the repo - git clone
  2. run npm install to install the dependencies
  3. run npm start to start the server

Usage

I'm trying to figure that out yet.

Configuration

Configuration is stored in config/config.js. local is for development, production for production. The environment can be chosen using the NODE_ENV environment variable.

Alternatively, environment variables can be used to configure the server.

NODE_ENV=production IP_ADDRESS=192.168.2.1 PORT=8000 npm start

Environment variables that can be specified:

  • IP_ADDRESS
  • PORT
  • URL
  • MINIFIED
  • HTTPS
  • ACCESS_CONTROL_ALLOW_ORIGIN

Requesting font CSS

Requests for CSS should be in the form of:

http(s)://domain/locale/Comma,Separated,Font,List/fonts.css

Author:

Getting involved:

I am happy to review submissions!

License:

This software is available under version 2.0 of the MPL:

https://www.mozilla.org/MPL/