/Pixelated-Font-Generator

Generating automatically full Unicode pixeleted font

Primary LanguageC#

Pixelated Font Generator (work in progress)

Generating automatically full Unicode pixeleted font

Recently I made a full font family called Pixie, its main idea was to be the smallest readable font and although I think I succseeded at that task, idea never left that that font does not include full Unicode table, plus where are my guarantees that those pixelated shapes are truly the best way to represent corresponding glyph?

So from drawing I turned to programming, first thing I did is generating an image with all possible pixel combinatioins for 3 fonts
3x4:
192x256_RGB
3x5:
546x910_RGB
4x4:
1024x1024_RGB

Although this is fun it wasn't really useful, so next thing i did is finding closest match for an imput image, that way I can go though full unicode and find closest corresponding pixeleted match, let's look at example 3x4 shape:
image

Then I generated an upscaled version using signed distance fields:
image

And now I can binaraze this image to get the upscaled shape
image

Using this algorithm I can calculate difference between two images and find closest match, for example here is imput letter M:
image

And here is closest match it found:
image

And upscaled version:
image

If we overlay those two images we will understand the reasoning behind machines choise, apperently this is the closest matching image:
image

This is still work in progress but its definitely a fun project to work on!