Utilities for Graphical Rendering

Useful tools for writing vector graphics devices.


gdtools 0.1.6

  • update with Rcpp 0.12.12
  • new function glyphs_match to test whether glyphs in strings are all existing in a font table or not.

gdtools 0.1.5

  • increase tolerance in font metrics unit-tests as new version of freetype is slightly changing returned extents.

gdtools 0.1.4

  • New file src/registerDynamicSymbol.c to correctly register provided routines
  • a cleanup file to delete src/Makevars when package has been built

gdtools 0.1.3

  • Add set_dummy_conf() and unset_dummy_conf() to set a minimalistic Fontconfig configuration. Useful to speed up cache building on Appveyor or CRAN.
  • skip tests that need fontquiver when not installed.

gdtools 0.1.2

  • Fix a crash on some Linux platforms (hadley/svglite#80)

gdtools 0.1.1


  • examples from sys_fonts and match_family are marked as donttest as their first run can be slow if no font caches are existing.

gdtools 0.1.0

new functions

  • sys_fonts: get system fonts details.
  • font_family_exists: test if a given font family name can be matched exactly
  • match_family: find best family match for a given Fontconfig pattern
  • match_font: returns font information for a given Fontconfig pattern
  • base64_string_export: encode a string in base64
  • version_cairo: runtime version of the Cairo library
  • version_freetype: runtime version of the FreeType library
  • version_fontconfig: compile-time version of the Fontconfig library


  • CONFIGURE file has been updated with Homebrew new repo (Jeroen Ooms)
  • GPL-3 license file has been added
  • CairoContext now uses Fontconfig to find system fonts
  • CairoContext now supports user-defined font files

gdtools 0.0.7

  • Fix to let OS X Snow Leopard produce binaries (Jeroen Ooms)

gdtools 0.0.6

  • Fix to prevent OSX CRAN builder from linking against old libs in /usr/local/lib (Jeroen Ooms)

gdtools 0.0.5

  • new function raster_write to write raster object to a png file
  • usage of testthat

gdtools 0.0.4

  • Fix for Mavericks CRAN builder (Jeroen Ooms)
  • Fix for solaris CRAN builder (Jeroen Ooms)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.2.3 by David Gohel, a year ago

Report a bug at https://github.com/davidgohel/gdtools/issues

Browse source code at https://github.com/cran/gdtools

Authors: David Gohel [aut, cre] , Hadley Wickham [aut] , Lionel Henry [aut] , Jeroen Ooms [aut] , Yixuan Qiu [ctb] , R Core Team [cph] (Cairo code from X11 device) , RStudio [cph]

Documentation:   PDF Manual  

GPL-3 | file LICENSE license

Imports Rcpp, systemfonts

Suggests htmltools, testthat, fontquiver, curl

Linking to Rcpp

System requirements: cairo, freetype2, fontconfig

Imported by flextable, hrbrthemes, rvg.

Suggested by akmedoids, ggdist, naniar, tidybayes, tsmp, visdat.

See at CRAN