All functions now follow snake_case naming convention. The old function names have been removed.
| Removed function | Use instead |
|----------|----------|
| house_icon_svg() | icon_house() |
| building_icon_svg() | icon_building() |
| construction_icon_svg() | icon_construction() |
| map_pin_icon_svg() | icon_map_pin() |
| money_icon_svg() | icon_money() |
| badge_svg() | create_badge() |
| badge_row_svg() | create_badge_row() |
| setup_cardargus_fonts() | setup_fonts() |
| install_cardargus_fonts() | install_fonts() |
| cardargus_font_cache_dir() | font_cache_dir() |
| register_knitr_engine() | register_cardargus_knitr() |
Added headless Chrome support for superior font rendering via the chromote package.
svg_to_png_chrome() - Convert SVG to PNG using headless Chromesvg_to_pdf_chrome() - Convert SVG to vector PDF using headless Chromechrome_available() - Check if Chrome/Chromium is availableensure_chrome() - Check and optionally download Chrome for Testingfind_chrome_path() - Find Chrome executable on the systemWhen Chrome is not installed, use ensure_chrome(download = TRUE) to
automatically download "Chrome for Testing" (~150MB). This standalone
Chrome distribution is cached locally and works without system installation.
All user-facing messages now use the cli package for better formatting:
Made it clearer that you can use your own SVG files for logos and icons:
# Use any SVG file path for logos
svg_card(
title = "My Card",
logos = c("/path/to/logo1.svg", "/path/to/logo2.svg"),
...
)
# Or for icons in fields
svg_card(
title = "My Card",
fields = list(
list(list(label = "Name", value = "Test", with_icon = "/path/to/icon.svg"))
),
...
)
All knitr/Quarto functions now support an engine parameter:
include_card() - Added engine parameterinclude_card_png() - Added engine parametersave_card_for_knitr() - Added engine parametercard_to_grob() - Added engine parameterEngine options:
"auto" (default): Uses Chrome if available, otherwise rsvg"chrome": Forces Chrome rendering"rsvg": Forces rsvg/magick rendering@font-face declarations in embed_svg_fonts()svg_to_formats()font-weight: 100 900)inst/fonts/ directoryfonts_dir() - Use font_cache_dir() insteadcustom_logo_svg() - Use load_svg_for_embed() or pass file paths directlysvg_card() - Main function for creating SVG cards with badges, fields, and logosicon_house() - House/home iconicon_building() - Building iconicon_construction() - Construction iconicon_map_pin() - Location pin iconicon_money() - Money/currency iconload_svg_for_embed() - Load and process external SVG filescreate_logo_row() - Create horizontal logo rowsget_svg_path() - Get paths to bundled SVGslist_bundled_svgs() - List available bundled SVGssave_svg() - Save card as SVG filesvg_to_png() - Convert card to PNGsvg_to_png_with_margin() - Convert with marginbatch_svg_to_png() - Batch convert multiple cardsinclude_card() - Display card inline as SVGinclude_card_png() - Display card inline as PNGsave_card_for_knitr() - Save for knitr::include_graphics()register_cardargus_knitr() - Register custom knitr enginecard_to_grob() - Convert to grid graphical objectsetup_fonts() - Quick setup for showtextregister_google_font() - Register Google Fontsfont_available() - Check font availabilityinstall_fonts() - Install fonts locally