isabella232 / font-scope

Reformats node-fontnik's font-inspect output to be human-readable and summarized.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

font-scope

Build Status

generate font debugging information

fontScope(points_array)

Analyze a font's coverage across languages

Analysis results include:

{
  name: 'English',    // English font name
  id: 'en',           // Unicode font code
  coverages: [26, 0], // array of how many codepoints are covered by each points
  count: 26,          // codepoints in this font for this language
  total: 26           // codepoints in this language
}

Parameters

parameter type description
points_array Array.<Array> an array of arrays of codepoints, corresponding to the coverage of multiple fonts.

Returns Object, analysis

Installation

Requires nodejs.

$ npm install @mapbox/font-scope

Tests

$ npm test

About

Reformats node-fontnik's font-inspect output to be human-readable and summarized.

License:ISC License


Languages

Language:JavaScript 97.1%Language:Makefile 2.9%