simoncozens / atokern

Neural network based font kerning
85 stars 7 forks source link

Font produced a string that was too wide/high #6

Open dpk opened 4 years ago

dpk commented 4 years ago

With quite a lot of the font files I’ve tried this on, including the one I want to actually get suggested kerning values for, I get an error:

Font <filename> produced a string that was too wide/high

Looking at the source, it appears I possibly need to increase box_width and box_height, but having tried that it also seems that requires retraining the neural network from scratch since it assumes particular values for these variables.

Is there another possible approach to fixing this?

simoncozens commented 4 years ago

You could try reducing the font x height value.