mgl-font2tex(1) Version 1.3.1 | MGL-Tools Manual

2023-03-09

NAME

mgl-font2tex - Outline font to texture converter.

SYNOPSIS

mgl-font2tex [options] [config-filename]

DESCRIPTION

mgl-font2tex is a tool for rasterizing outline fonts. The rasterized image is saved in png format, and the character metrics information is output in json or binary format.

For the first time, use the init option to create a configuration file, and open it with a text editor to write the settings.

If [config-filename] is not specified, ‘font2tex.config’ will be used.

OPTIONS

init

A new configuration file is created with the name specified in [config-filename].

-h, --help

Display simple help.

-v, --version

Display the version information and exit.

EXIT STATUS

0

Succeeded.

otherwise

Failed.

ENVIRONMENT

MGL_FONT_PATH

If a relative path is specified in FontPath, the directory specified in this environment variable is searched. If a file with the same name exists in the current directory, it is used.