register_font: Register a Google Font in the document head

View source: R/engine.R

register_fontR Documentation

Register a Google Font in the document head

Description

Adds a '<link>' tag to the HTML document head for the given font URL. Each unique URL is registered only once per document, avoiding redundant downloads when multiple pikchr chunks use the same font.

Usage

register_font(font_url)

Arguments

font_url

Character URL of the Google Fonts CSS.

Value

Invisible 'NULL'.


pikchr documentation built on Oct. 30, 2026, 1:07 a.m.