readme

来自「ft235 freetype 2.3. 5 freetype 2.3.5」· 代码 · 共 49 行

TXT
49
字号
ftrandom--------This program expects a set of directories containing good fonts, and a setof extensions of fonts to be tested.  It will randomly pick a font, copy it,introduce and error and then test it.The FreeType tests are quite basic:  For each erroneous font it    forks off a new tester;    initializes the library;    opens each font in the file;    loads each glyph;      (optionally reviewing the contours of the glyph)      (optionally rasterizing)    closes the face.If the tester exits with a signal, or takes longer than 20 seconds thenftrandom saves the erroneous font and continues.  If the tester exitsnormally or with an error, then the superstructure removes the test font andcontinues.Arguments are:  --all                    Test every font in the directory(ies) no matter                           what its extension (some CID-keyed fonts have no                           extension).  --check-outlines         Call FT_Outline_Decompose on each glyph.  --dir <dir>              Append <dir> to the list of directories to search                           for good fonts.  --error-count <cnt>      Introduce <cnt> single-byte errors into the                           erroneous fonts.  --error-fraction <frac>  Multiply the file size of the font by <frac> and                           introduce that many errors into the erroneous                           font file.  --ext <ext>              Add <ext> to the set of font types tested.  Known                           extensions are `ttf', `otf', `ttc', `cid', `pfb',                           `pfa', `bdf', `pcf', `pfr', `fon', `otb', and                           `cff'.  --help                   Print out this list of options.  --nohints                Specify FT_LOAD_NO_HINTING when loading glyphs.  --rasterize              Call FT_Render_Glyph as well as loading it.  --result <dir>           This is the directory in which test files are                           placed.  --test <file>            Run a single test on a pre-generated testcase.                            Done in the current process so it can be debugged                           more easily.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?