g.mkfontcap(1)
β¨ g.mkfontcap β the fontcap glow-up page π
okay bestie, this is the GRASS GIS User's Manual page for g.mkfontcap, and it's literally the module that goes out into your filesystem, finds every font it can, and writes you a lil config file. it's giving talent scout energy. π
π« NAME
g.mkfontcap β Generates the font configuration file by scanning various directories for fonts.
π KEYWORDS
general
πΈ SYNOPSIS
g.mkfontcap
g.mkfontcap --help
g.mkfontcap [-s] [extradirs=string] [--help] [--verbose] [--quiet] [--ui]
π Flags:
-sβ Write font configuration file to standard output instead of$GISBASE/etc--helpβ Print usage summary--verboseβ Verbose module output--quietβ Quiet module output--uiβ Force launching GUI dialog
π¦ Parameters:
extradirs=stringβ List of extra directories to scan- Comma-separated list of extra directories to scan for Freetype-compatible fonts as well as the defaults (see documentation)
π DESCRIPTION
so g.mkfontcap is the little utility that generates a GRASS font configuration file (aka a "fontcap") holding all the deets about the fonts chillin' on your current system. π
if Freetype isn't installed, no biggie β the font list just gets limited to the set of Hershey stroke fonts that ship with GRASS. but with Freetype enabled? bestie, it's over for you, because the module will recursively scan all files inside a predefined hierarchy to find Freetype-compatible scalable fonts. the way it just... digs through everything. obsessed. πβ¨
the list of directories scanned is currently:
/usr/lib/X11/fonts
/usr/share/X11/fonts
/usr/share/fonts
/usr/local/share/fonts
${HOME}/Library/Fonts
/Library/Fonts
/System/Library/Fonts
${WINDIR}/Fonts
these correspond to directories where fonts can be found on some common operating systems. extra directories to search can easily by added using the extradirs parameter, which accepts a comma-separated list. an extra directory may optionally contain an environment variable at the start of the string, if enclosed in ${xxx} syntax (see examples above). π
the module will normally write to the standard fontcap file location, $GISBASE/etc/fontcap. but!! if the environment variable GRASS_FONT_CAP is set, the output will instead be written to the file specified by that variable. this is useful if you don't have permission to modify $GISBASE/etc/fontcap β in this case you can use e.g.
# use local file version instead of system copy
GRASS_FONT_CAP=$HOME/.gfontcap
export GRASS_FONT_CAP
g.mkfontcap
to create a personal copy and then to make GRASS use that file instead of the system copy. main character move tbh. π
the output list of fonts is sorted first by type (Stroke fonts first, followed by Freetype) and within each type by the short name of the font. β¨
π SEE ALSO
d.font
π«Ά AUTHOR
Paul Kelly
π SOURCE CODE
Available at: g.mkfontcap source code (history)
Accessed: Saturday Jan 17 05:40:39 2026
Main index | General index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
okay that's the whole page, no cap, nothing skipped π and yes this manual page is literally stamped GRASS 8.4.2 / g.mkfontcap(1), accessed Saturday Jan 17 05:40:39 2026. go scan some fonts bestie, slay. πΈπ¦π
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms