Package: gdtools 0.5.0

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.0.tar.gz
gdtools_0.5.0.zip(r-4.6)gdtools_0.5.0.zip(r-4.5)gdtools_0.5.0.zip(r-4.4)
gdtools_0.5.0.tgz(r-4.6-x86_64)gdtools_0.5.0.tgz(r-4.6-arm64)gdtools_0.5.0.tgz(r-4.5-x86_64)gdtools_0.5.0.tgz(r-4.5-arm64)
gdtools_0.5.0.tar.gz(r-4.6-arm64)gdtools_0.5.0.tar.gz(r-4.6-x86_64)gdtools_0.5.0.tar.gz(r-4.5-arm64)gdtools_0.5.0.tar.gz(r-4.5-x86_64)
gdtools_0.5.0.tgz(r-4.5-emscripten)
gdtools.pdf |gdtools.html
gdtools/json (API)
NEWS

# Install 'gdtools' in R:
install.packages('gdtools', repos = c('https://davidgohel.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

13.64 score 28 stars 369 packages 364 scripts 139k downloads 18 mentions 30 exports 14 dependencies

Last updated from:77791fd3dc. Checks:12 OK, 1 NOTE. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-arm64OK140
linux-devel-x86_64OK179
source / vignettesOK206
linux-release-arm64OK160
linux-release-x86_64OK156
macos-devel-arm64OK164
macos-devel-x86_64OK200
macos-release-arm64OK87
macos-release-x86_64OK240
windows-develOK159
windows-releaseOK142
windows-oldrelNOTE160
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

  • Image