Skip to contents

This function modifies the font family and font color in an SVG file.

Usage

modify_svg_fonts(
  input_file,
  output_file = NULL,
  family = "Calibri",
  font_color = "#333333"
)

Arguments

input_file

A character string specifying the path to the input SVG file.

output_file

A character string specifying the path to the output SVG file. If NULL, the input file will be overwritten.

family

A character string specifying the font family to use. Default is "Calibri".

font_color

A character string specifying the font color to use. Default is "#333333".

Value

None. The function writes the modified SVG content to the output file.