Font Converter
Font-Stripe Converter
The Font-Stripe Converter is a command-line tool.
Usage
font_converter <param 1> <param 2> ...
Description
--input_xml
or-ix
, optional : An XML font description file--input_truetype
or-it
, optional : A TrueType font file--input_image
or-ii
, optional : A font strip image containing all glyphs to convert on a single line--input_codes
or-ic
, optional : A text file containing all glyphs as a semicolon-separated list of UTF16 hex codes, matching the input image file--input_ascii
or-ia
, optional : A text file containing all glyphs as a string of UTF8 characters, matching the input image file--output_image
or-oi
, optional : The name of the texture image to generate--output_font
or-of
, mandatory : The name of the font file to generate, containing all individual glyph positions and sizes within the output image--output_compression
or-oc
, optional : The compression of the texture image to generate[DEFAULT | BEST]
--scale_factor
or-c
, optional : Overall scale factor--raster
or-r
, optional : Overall position and size raster--base_line
or-b
, optional : Font base line, specified in pixels from the top of the input image in downward direction. When specified, both–ascent
and–descent
must also be given.--ascent
or-a
, optional : Font ascent, specified in (positive) pixels from the base line in upward direction. When specified, both–base_line
and–descent
must also be given.--descent
or-d
, optional : Font descent, specified in (positive) pixels from the base line in downward direction. When specified, both–base_line
and–ascent
must also be given.--spacing
or-s
, optional : Font spacing; this is the amount of pixels to advance from one character to the next one in X direction--leading
or-l
, optional : Font leading; this is the amount of pixels to advance from one text line to the next one in Y direction--space_width
or-sw
, optional : The width of the space character in pixels--digit_width
or-dw
, optional : The custom width of all the digits (0-9) in pixels--horizontal_offset
or-ho
, optional : Horizontal character offset in pixels--vertical_offset
or-vo
, optional : Vertical character offset in pixels--matte_color
or-mc
, optional : Matte color for the input image in formatR[f|i|h], G[f|i|h], B[f|i|h] | RRGGBBh
--matte_threshold
or-mt
, optional : The alpha threshold value for applying the matte color in range 0 - 255 (default 8)--search_threshold
or-st
, optional : The alpha threshold value for splitting the input image to individual glyphs in range 0 - 255 (default 0)--crop_threshold
or-ct
, optional : The alpha threshold value for cropping the individual glyphs in range 0 - 255 (default 5)--crop_input_image
or-ci
, optional, switch : If set, the input image is vertically cropped using the crop threshold for determining the font height when--ascent
/--descent
/--base_line
are not given.