gdtools: Font Metrics and Font Management Utilities for R Graphics

Compute text metrics (width, ascent, descent), with or without kerning, from font files with 'FreeType', independently of the active graphic device. Font lookup is delegated to 'systemfonts'. Additional utilities let users register 'Google Fonts', the bundled 'Liberation' fonts or the bundled math font 'STIX Two Math', check font availability, and assemble 'htmlDependency' objects so that fonts are correctly embedded in 'Shiny' applications, 'R Markdown' documents, and 'htmlwidgets' outputs such as 'ggiraph'.

Version: 0.6.0
Depends: R (≥ 4.0.0)
Imports: fontquiver (≥ 0.2.0), htmltools, Rcpp (≥ 0.12.16), systemfonts (≥ 1.3.1), tools
LinkingTo: Rcpp
Suggests: curl, gfonts, testthat
Published: 2026-11-13
DOI: 10.32614/CRAN.package.gdtools
Author: David Gohel [aut, cre], Hadley Wickham [aut], Lionel Henry [aut], Jeroen Ooms ORCID iD [aut], Yixuan Qiu [ctb], ArData [cph], RStudio [cph], The STIX Fonts Project Authors [cph] (STIX Two Math font, see file COPYRIGHTS)
Maintainer: David Gohel <david.gohel at ardata.fr>
BugReports: https://github.com/davidgohel/gdtools/issues
License: GPL-3 | file LICENSE
Copyright: See file COPYRIGHTS
gdtools copyright details
URL: https://davidgohel.github.io/gdtools/
NeedsCompilation: yes
SystemRequirements: freetype2
Materials: README, NEWS
CRAN checks: gdtools results

Documentation:

Reference manual: gdtools.html , gdtools.pdf

Downloads:

Package source: gdtools_0.6.0.tar.gz
Windows binaries: r-devel: gdtools_0.5.3.zip, r-release: gdtools_0.5.3.zip, r-oldrel: gdtools_0.5.3.zip
macOS binaries: r-release (arm64): gdtools_0.5.3.tgz, r-oldrel (arm64): gdtools_0.5.3.tgz, r-release (x86_64): gdtools_0.5.3.tgz, r-oldrel (x86_64): gdtools_0.5.3.tgz
Old sources: gdtools archive

Reverse dependencies:

Reverse imports: cardargus, doconv, flextable, ggextreme, ggfacto, ggfootball, ggiraph, movedesign, munch, rvg
Reverse suggests: NACHO, officer

Linking:

Please use the canonical form https://CRAN.R-project.org/package=gdtools to link to this page.