GitXplorerGitXplorer
s

atokern

public
87 stars
7 forks
6 issues

Commits

List of commits on branch master.
Unverified
5ebce04b45b1173f6fc950bc1da4bdfaa18d4b55

A three-way categoriser, plus some data storage enhancements

ssimoncozens committed 5 years ago
Unverified
aa42306e387ab303528514149acacab1908cdf06

Various callbacks which may be useful to someone

ssimoncozens committed 5 years ago
Unverified
b633dd6fa63aafa852fc24739d50de7b07b4941e

Merge branch 'frankhall'

ssimoncozens committed 5 years ago
Unverified
74e9e96b63060aea29ef542bcda9d8d3734f411f

Clean up failed stuff

ssimoncozens committed 5 years ago
Unverified
b3d238f53da3c8076853222d30f288ab69a9afb8

Today's experiments

ssimoncozens committed 5 years ago
Unverified
d987afa6f9ff30232df9c6d09e844a4451ff9075

Train a single discriminator, based on Frank/Hall’s theory

ssimoncozens committed 7 years ago

README

The README file for this repository.

kerncritic

A neural network for kerning fonts. This has gone through a number of experimental designs and phases. The latest version shows a number of word images to a neural network - some of these are well-kerned, others are not - and asks the network to distinguish which are wrong and how to fix them.

Getting started

This is a Python 3 script. (I think it would probably work fine with Python 2 with a few minor modifications.)

Install the module requirements with pip:

pip3 install -r requirements.txt

To report on the kerning status of a font:

./kerncritic myfont.otf

By default this will test every uppercase basic Latin (A-Z) against every other uppercase basic Latin. To change the range of pairs checked, use the --left and --right options. You can use the token <uc> as a shortcut for A-Z and the token <lc> as a shortcut for a-z. For example: --right '<uc><lc>0123456789' will test every uppercase basic Latin against basic Latin letters and numerals.

kerncritic reports on pairs that it is more than 70% sure are wrong. You can change this with the --tolerance option. Use kerncritic --help for more.

Licence

Copyright 2017-2019 Simon Cozens

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.