ftbench(1) benchmark some common FreeType paths


ftbench [options] fontname


The ftbench tool measures performance of some common FreeType operations.

This program is part of the FreeType demos package.


Compare with cached version if available.
-c n
Use at most n iterations for each test (0 means time limited).
-f l
Use hexadecimal (not decimal) number l as load flags (see the `FT_LOAD_XXX' macros in the FreeType reference).
Use alternative hinting engine (Adobe CFF or TTF v35).
-i idx
Start with index idx (default is 0).
-m m
Set maximum cache size to M KiByte (default is 1024).
Preload font file in memory.
-r n
Set render mode to n:
3horizontal LCD
4verical LCD
(default is 0). This corresponds to the values of the `FT_RENDER_MODE_XXX' flags.
-s s
Use s ppem as face size (default is 10ppem). If set to zero, don't call FT_Set_Pixel_Sizes. Use value 0 with option `-f 1' or something similar to load the glyphs unscaled, otherwise errors will show up.
-t t
Use at most t seconds per test (default is 2).
-b tests
Perform chosen tests:
aload a glyph (FT_Load_Glyph)
bload advance widths (FT_Get_Advances)
crender a glyph (FT_Render_Glyph)
dload a glyph (FT_Get_Glyph)
eget glyph cbox (FT_Glyph_Get_CBox)
fget glyph indices (FT_Get_Char_Index)
giterate CMap (FT_Get_{First,Next}_Char)
hopen a new face (FT_New_Face)
iembolden (FT_GlyphSlot_Embolden)
jget glyph bbox (FT_Outline_Get_BBox)
(default is abcdefghij, this is, all tests).
Show version.