docstamp/svg_fonts.py
def embed_font_to_svg(filepath, outfile, font_files):
    """ Write ttf and otf font content from `font_files`
    in the svg file in `filepath` and write the result in
    `outfile`.

    Parameters
    ----------
    filepath: str
        The SVG file whose content must be modified.

    outfile: str
        The file path where the result will be written.

    font_files: iterable of str
        List of paths to .ttf or .otf files.
    """
    tree = _embed_font_to_svg(filepath, font_files)
    tree.write(outfile, encoding='utf-8', pretty_print=True)
def embed_font_to_svg(filepath, outfile, font_files):
    tree = _embed_font_to_svg(filepath, font_files)
    tree.write(outfile, encoding='utf-8', pretty_print=True)
def embed_font_to_svg ( filepath , outfile , font_files ) : tree = _embed_font_to_svg ( filepath , font_files ) tree . write ( outfile , encoding = 'utf-8' , pretty_print = True )
Write ttf and otf font content from `font_files`
    in the svg file in `filepath` and write the result in
    `outfile`.

    Parameters
    ----------
    filepath: str
        The SVG file whose content must be modified.

    outfile: str
        The file path where the result will be written.

    font_files: iterable of str
        List of paths to .ttf or .otf files.
Write ttf and otf font content from font_files in the svg file in filepath and write the result in outfile .