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'.

Tests Vignettes

Available Snapshots

This version of gdtools can be found in the following snapshots:

Dependencies

Imports/Depends/LinkingTo/Enhances (6)
  • R
  • Rcpp
  • fontquiver >= 0.2.0
  • htmltools
  • Rcpp >= 0.12.16
  • systemfonts >= 1.3.1
  • Suggests (3)
  • curl
  • gfonts
  • testthat
  • Version History