6.2. distance.fontinfo

../_images/distance_text.png

6.2.1. Brief

A more advanced use is distance fields. the final result. Uses: Distance Field.

6.2.2. .fontinfo

[default]
name = ./fonts/No-move.ttf
size = 132
padding = 4

letters = letters_ascii.txt

bgcolor = (0, 0, 0)


writer = fontout_json
texturerender = fonttex_bitmap
texturesize = 1024, 1024

texturewriter = fonttexout_pil
textureformat = .png
texturechannels = R

layers = [Layer(color=distance_field, mask=None, blend=None)]

# modes: none, light, normal. Default is 'normal'
antialias = none

[distance_field]
type = distancefield
factor = 4
size = 32

6.2.3. Results

The JSON file .json

../_images/distance.png