Package: AddFonts 0.2.0

AddFonts: Download and Register Fonts from GDPR-Compliant Providers For Use In R graphics

Download and register fonts from GDPR-compliant providers for use in R graphics. Currently supports Bunny Fonts (<https://fonts.bunny.net/>/). Architecture allows for easy additions of font providers.

Authors:Guillaume Noblet [aut, cre, cph]

AddFonts_0.2.0.tar.gz
AddFonts_0.2.0.zip(r-4.7)AddFonts_0.2.0.zip(r-4.6)AddFonts_0.2.0.zip(r-4.5)
AddFonts_0.2.0.tgz(r-4.6-any)AddFonts_0.2.0.tgz(r-4.5-any)
AddFonts_0.2.0.tar.gz(r-4.7-any)AddFonts_0.2.0.tar.gz(r-4.6-any)
AddFonts_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
AddFonts/json (API)
NEWS

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

Bug tracker:https://codeberg.org/gnoblet/addfonts

Pkgdown/docs site:https://guillaume-noblet.com

On CRAN:

Conda:

1.70 score 5 scripts 10 exports 20 dependencies

Last updated from:c02003811c. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK144
source / vignettesOK161
linux-release-x86_64OK118
macos-release-arm64OK171
macos-oldrel-arm64OK172
windows-develOK81
windows-releaseOK82
windows-oldrelOK80
wasm-releaseOK104

Exports:add_fontas_CacheEntryListas_FontProvideras_listcache_cleanCacheEntryCacheEntryListCacheMetadelete_filespreview_font

Dependencies:askpassclicurlfsgluehttr2jsonlitelifecyclemagrittropensslR6rappdirsrlangS7showtextshowtextdbsyssysfontsvctrswithr

Readme and manuals

Help Manual

Help pageTopics
Add a font to the local cache and register it for useadd_font
Read from listas_CacheEntryList
Construct a 'FontProvider' from a named listas_FontProvider
As listas_list
Clean cache entriescache_clean
Get certain families from CacheEntryListcache_get
Check which weights are available in a cache entrycache_get_weights
Read cache entry from diskcache_read
Delete entry from cachecache_remove
Set cache entriescache_set
Compose canonical filename for a cached TTFcache_ttf_filename
Compute canonical cache path for a TTF filecache_ttf_path
Compute paths used for caching provider artifacts and any conversion intermediate files.cache_variant_paths
Write CacheEntryList to disk as JSONcache_write
S7-backed cache entry (CacheEntry)CacheEntry
S7 list of cache entries (CacheEntryList)CacheEntryList
S7-backed cache metadata (CacheMeta)CacheMeta
Resolve a conversion name to the converter function used by the package (currently only 'woff2_to_ttf').conv_fun
Delete filesdelete_files
Download font variants and add to cachedownload_and_cache
Download and (if needed) convert a provider artifact to a local TTF file for a given family/weight/style and return the local path.download_variant_generic
Download font files for specified weightsdownload_weights
Font provider specification (FontProvider)FontProvider
Get the package cache directory for fontsget_cache_dir
Get provider details from internal dataget_provider_details
Preview a font by ensuring it's installed and drawing a sample stringpreview_font
Validate a cache entry and register the font with sysfonts if the required files exist. Returns the prepared 'files' list or 'NULL' when registration cannot proceed.register_from_cache
Download necessary variants for a font, write a cache entry and register the font with 'sysfonts'. Returns the prepared 'files' list on success, or 'NULL' if a regular font could not be obtained.register_from_download
Create a filesystem-safe id from a namesafe_id
Download missing weights and update an existing cache entryupdate_download_and_cache
Convert a .woff2 font to .ttf using the system 'woff2_decompress' toolwoff2_to_ttf