Package: gdtools 0.5.1

David Gohel

gdtools: Font Metrics and Font Management Utilities for R Graphics

Compute text metrics (width, ascent, descent) using 'Cairo' and 'FreeType', independently of the active graphic device. Font lookup is delegated to 'systemfonts'. Additional utilities let users register 'Google Fonts' or bundled 'Liberation' fonts, 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'.

Authors:David Gohel [aut, cre], Hadley Wickham [aut], Lionel Henry [aut], Jeroen Ooms [aut], Yixuan Qiu [ctb], R Core Team [cph], ArData [cph], RStudio [cph]

gdtools_0.5.1.tar.gz
gdtools_0.5.1.tar.gz(r-4.7-arm64)gdtools_0.5.1.tar.gz(r-4.7-x86_64)gdtools_0.5.1.tar.gz(r-4.6-arm64)gdtools_0.5.1.tar.gz(r-4.6-x86_64)
gdtools_0.5.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
gdtools/json (API)
NEWS

# Install 'gdtools' in R:
install.packages('gdtools', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/davidgohel/gdtools/issues

Pkgdown/docs site:https://davidgohel.github.io

Uses libs:
  • cairo– Cairo 2D vector graphics library
  • freetype– FreeType 2 font engine
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cairofreetypecpp

10.33 score 390 packages 428 scripts 213k downloads 18 mentions 30 exports 14 dependencies

Last updated from:74763022a2. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK144
linux-devel-x86_64OK202
source / vignettesOK191
linux-release-arm64OK155
linux-release-x86_64OK149
wasm-releaseOK136

Exports:addGFontHtmlDependencycheck_gfontsdummy_setupfont_family_existsfont_googlefont_liberationfont_setfont_set_autofont_set_liberationfonts_cache_dirgfontHtmlDependencyinit_fonts_cacheinstall_gfont_scriptinstalled_gfontsliberationmonoHtmlDependencyliberationsansHtmlDependencyliberationserifHtmlDependencym_str_extentsmatch_familyregister_gfontregister_liberationmonoregister_liberationsansregister_liberationserifrm_fonts_cacheset_dummy_confstr_metricsstrings_sizessys_fontsversion_cairoversion_freetype

Dependencies:base64encclicpp11digestfastmapfontBitstreamVerafontLiberationfontquiverhtmltoolsjsonlitelifecycleRcpprlangsystemfonts

Readme and manuals

Help Manual

Help pageTopics
Use a Font in Shiny or MarkdownaddGFontHtmlDependency
Check if font family exists.font_family_exists
Google Font specificationfont_google
Liberation Font specificationfont_liberation
Create a font setfont_set
Automatic font setfont_set_auto
Liberation font setfont_set_liberation
Manage Font Working Directoryfonts_cache_dir init_fonts_cache rm_fonts_cache
'Google Font' HTML dependencygfontHtmlDependency
Shell command to install a font from 'Google Fonts'install_gfont_script
List installed 'Google Fonts'installed_gfonts
'Liberation Mono' Font HTML dependencyliberationmonoHtmlDependency
'Liberation Sans' Font HTML dependencyliberationsansHtmlDependency
'Liberation Serif' Font HTML dependencyliberationserifHtmlDependency
Register a 'Google Font'register_gfont
Register font 'Liberation Mono'register_liberationmono
Register font 'Liberation Sans'register_liberationsans
Register font 'Liberation Serif'register_liberationserif
Compute strings sizesstrings_sizes
List fonts for 'systemfonts'.sys_fonts
Version numbers of C librariesversion_cairo version_freetype