I am writing this blog post to document the method I use to transition pixel art from a raster format into a functional vector font. This workflow bridges Aseprite and FontForge to make the font creation process fast and efficient.
First, the drawing phase takes place in Aseprite. You need to determine a specific line standard, and all necessary characters must be drawn based on this standard using a grid-based system. For this project, each character is designed at a 16px size.
To extract these characters individually, export the entire canvas as a single PNG file. Next, create a new file in Aseprite and implement this PNG using the 'Import Sprite Sheet' option.
Once the sheet is sliced, export the characters individually using the 'Export As' menu:
- Format: char_.svg
- Pixel Scale: 64px
Note: The pixel scale is set to 64px because the original characters are 16px. Scaling is necessary before moving to the vector stage.
Now, open FontForge to compile the font. Go to the 'Font Info' section:
- Set the Em Size value to 1024.
- Set the encoding to ISO 10646-1 (Unicode, BMP).
Next, select the relevant character slots in the software one by one and import your corresponding SVG files. After all characters are imported, select all of them and navigate to:
- Element -> Validation -> Validate...
The most likely errors you will encounter here will be related to overlapping paths or non-integer values. To resolve this, keep all characters selected and apply these two operations sequentially:
- Element -> Overlap -> Remove Overlap
- Element -> Round -> To Int
If there are some characters that remain unresolved, double-click to open them specifically, apply the same operations directly inside, and save. There will inevitably be some unresolvable validation errors purely due to the blocky design of pixel art; you can safely ignore those.
After the geometry is fixed, the line space of the characters needs to be configured. This requires opening each character individually and applying the necessary narrowing adjustments to the left and right bearings. While making these edits, you can test the font's appearance and spacing dynamically by opening:
- Metrics -> New Metrics Window
Once all spacing adjustments are completed, navigate to File -> Generate Fonts... Select TrueType from the options and generate your font as a .ttf file. Your custom pixel art font is now ready to be used.


.jpeg)

.jpeg)
.jpeg)












