UNPKG

string-to-svg

Version:

Convert text to SVG path without native dependence.

10 lines (7 loc) 438 B
import { Font } from 'opentype.js'; export { Font } from 'opentype.js'; import { e as STSOptions } from './index-e3039ff1.js'; export { A as Anchor, S as STSOptionsWithFont, g as getD, a as getHeight, b as getMetrics, c as getPath, d as getWidth } from './index-e3039ff1.js'; declare function loadFont(fontPath: string): Font; declare function getSVG(text: string, options: STSOptions): string; export { STSOptions, getSVG, loadFont };