Giter Site home page Giter Site logo

fontcompare's Introduction

Font Compare

Ranks given characters by how different they are in two given fonts.

Give it a string and two fonts installed on your system, and it will show you which characters have the most differences. Click a table row to get a visual preview.

What do the numbers mean?

It's the number of pixels in the difference. Draw one letter, draw the other letter with the Difference blend mode, count the white pixels. Gray antialiasing pixels count for less than a full pixel based on their lightness. (This is calculated linearly; it probably shouldn't be, but it seems to work well enough.)

TODO

  • UI for font names and string

  • Better layout/appearance

  • Calculate differences by percentage rather than absolute quantity of pixels. Plan is to calculate it as

    [pixels in the diff] / [pixels in the union of the two characters]

  • Normalize by width/height of a given character

  • Customizable preview colors

  • Trim images instead of always using the entire canvas

    • Option to ignore sidebearings
  • Set up as GitHub Pages thingy

  • Migrate to some NodeJS build abomination instead of the wonderful CodeKit if this gets sufficient attention to warrant it (unlikely)

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.