Makefile: separate binaries for stb_truetype and freetype
[fbpad_mkfn.git] / README
blob2f78c221221994c991c15df801654ee4c4cec46b
1 FBPAD_MKFN
2 ==========
4 This program generates fbpad font files.  It can use either
5 stb_truetype.h (without external dependencies) or Freetype library.
6 For the former build mkfn_stb and for the latter build mkfn_ft.
8 To control which glyphs to include in the generated font, especially
9 to reduce the size of the files, edit chars.h.  The gen.sh script
10 shows how to use mkfn.
12 The height and width of the resulting font can be specified with the
13 -h and -w options.  Mkfn expects font paths as its final arguments;
14 these fonts are searched in the same order for the glyphs to put in
15 the resulting fbpad font.  The size and horizontal/vertical DPI of
16 each font may be specified after each font path as (without the
17 brackets):
19   font.ttf:[SZ][hHDPI][vVDPI][rVADJ][cHADJ][bBOLD][aHINT]
21 in which SZ is the font size, HDPI/VDPI is the horizontal/vertical
22 DPI, HADJ/VADJ is the amount of horizontal/vertical position
23 adjustment, BOLD specifies if fonts should be emboldened by repeating
24 pixels, and HINT specifies if autohinting should be used.