2023-02-06
mgl-font2tex - Outline font to texture converter.
mgl-font2tex [options] [config-filename]
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.
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.
0
Succeeded.
otherwise
Failed.
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.