FTBENCH(1)
π ftbench(1) β General Commands Manual π
okay bestie, welcome to the ftbench page. This is the General Commands Manual entry for it, and it's giving benchmark era π
πΈ NAME πΈ
ftbench β benchmark some common FreeType paths, no cap β¨
π¦ SYNOPSIS π¦
ftbench [options] fontname
π DESCRIPTION π
The ftbench tool measures performance of some common FreeType operations. It's literally here to run the vibe check on speed, bestie πββοΈπ¨
This program is part of the FreeType demos package. Proud demo-package member, periodt π
β¨ OPTIONS β¨
-a axis1,axis2,...β For Multiple Master, GX, or OpenType variation fonts, specify design coordinates for each axis at start-up. Ignored for all other font formats. So if your font has axes, this is your moment; otherwise it's just gonna sit there looking cute π-b testsβ Perform chosen tests. Here's the menu, bestie:aβ load glyphs (FT_Load_Glyph)bβ load advance widths (FT_Get_Advances)cβ render glyphs (FT_Render_Glyph)dβ load glyphs (FT_Get_Glyph)eβ get glyph indices (FT_Get_Char_Index)fβ iterate CMap (FT_Get_{First,Next}_Char)gβ open a new face (FT_New_FaceorFT_New_Memory_Face)hβ embolden glyphs (FT_GlyphSlot_Embolden)iβ stroke glyphs (FT_Glyph_Stroke)jβ get glyph bboxes (FT_Outline_Get_BBox)kβ get glyph cboxes (FT_Glyph_Get_CBox)lβ open a new face and load glyphs
The default is abcdefghijkl β that's literally all the tests, iykyk π
The number of used glyphs per test (within a single iteration) is given by option -i.
-Cβ Compare with cached version if available. Cute lil comparison moment π«Ά-c Nβ Use at mostNiterations for each test (0means time limited). So0isn't "zero work", it's "let the clock decide", bestie β³-e Eβ Use charmap with indexEinstead of the default unicode. Charmap selection, but make it fashion π-f Lβ Use hexadecimal (not decimal) numberLas load flags (see theFT_LOAD_XXXmacros in the FreeType reference). Hex, not decimal β don't play yourself π-H nameβ Using CFF hinting enginename. Available versions are depending on compilation options of FreeType; callftbenchwithout an argument to get the actual list. Built different depending on your FreeType build, fr fr π₯-I verβ Using TT interpreter versionver. Available versions are depending on compilation options of FreeType; callftbenchwithout an argument to get the actual list. Same energy: check the list by running with no argument π§-i I-Jβ Forward or reverse range of glyph indices to use (default is from0to the number of glyphs minus one). Range supremacy π-m Mβ Set maximum cache size toMKiByte (default is1024). Cache got a max, and it's1024KiByte by default β¨-pβ Preload font file in memory (this is, testingFT_New_Memory_Faceinstead ofFT_New_Face). Memory-face behavior, slay π§ π-r Rβ Set render mode toR:0β normal1β light2β mono3β horizontal LCD4β vertical LCD
(default is 0). This corresponds to the values of the FT_RENDER_MODE_XXX flags. Render mode selection is main character energy π
-s Sβ UseSppem as face size (default is10ppem). If set to zero, don't callFT_Set_Pixel_Sizes. Use value0with option-f 1or something similar to load the glyphs unscaled, otherwise errors will show up.
fr fr, zero has caveats: use0with something like-f 1to load unscaled, or errors will show up π
-t Tβ Use at mostTseconds per test (default is2). Timeout but make it cozy β°-vβ Show version. The classic "what version are we on" check π
This page is from FreeType 2.15.0, dated October 2026 β that's the source/version and date, bestie. go benchmark and slay, byeee ππ¦
π¦ where this page comes from
- arch rolling: freetype2-demos 2.15.0-1 Β· FTL OR GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms