X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=ttf2png.c;h=e8d794c56c6445f4e5780a80272f70ed3a44c321;hb=9bb0eb0e59ef6857da8932ea35833773a5374dc7;hp=96c325454609bd3d9cf4dfd7556f38b17773e1dc;hpb=5ccf6cfbee39edce04c091a1863574adfcdfe968;p=ttf2png.git diff --git a/ttf2png.c b/ttf2png.c index 96c3254..e8d794c 100644 --- a/ttf2png.c +++ b/ttf2png.c @@ -61,7 +61,7 @@ typedef struct sFont Image image; } Font; -void usage(); +void usage(void); unsigned round_to_pot(unsigned); void *alloc_image_data(size_t, size_t); int init_font(Font *, FT_Face, unsigned, unsigned, int); @@ -279,28 +279,28 @@ int main(int argc, char **argv) return 0; } -void usage() +void usage(void) { printf("ttf2png 1.1 - True Type Font to PNG converter\n" - "Copyright (c) 2004-2008 Mikko Rasa, Mikkosoft Productions\n" + "Copyright (c) 2004-2018 Mikko Rasa, Mikkosoft Productions\n" "Distributed under the GNU General Public License\n\n"); printf("Usage: ttf2png [options] \n\n"); printf("Accepted options (default values in [brackets])\n" - " -r Range of characters to convert [0,255]\n" + " -r Range of code points to convert [0,255]\n" " -s Font size to use, in pixels [10]\n" - " -l Number of characters to put in one line [auto]\n" - " -c Character cell size, in pixels [auto]\n" + " -l Number of glyphs to put in one line [auto]\n" + " -c Glyph cell size, in pixels (grid mode only) [auto]\n" " -o Output file name (or - for stdout) [font.png]\n"); printf(" -a Force autohinter\n" " -t Render glyphs to alpha channel\n" " -i Invert colors of the glyphs\n" " -v Increase the level of verbosity\n" - " -e Use cells in sequence, without gaps\n" + " -e Use cells in sequence, without gaps (grid mode only)\n" " -p Pack the glyphs tightly instead of in a grid\n" - " -m Margin around image edges in packed mode [0]\n" - " -n Padding between packed glyphs [1]\n" + " -m Margin around image edges (packed mode only) [0]\n" + " -n Padding between glyphs (packed mode only) [1]\n" " -d File name for writing glyph definitions\n" " -h Print this message\n"); }