Files
nothoughts/node_modules/pixi.js/lib/scene/text-html/utils/getSVGUrl.d.ts
2025-08-04 18:57:35 +02:00

13 lines
626 B
TypeScript

import type { HTMLTextRenderData } from '../HTMLTextRenderData';
import type { HTMLTextStyle } from '../HtmlTextStyle';
/**
* takes all the data and returns a svg url string can be loaded by an image element
* @param text - The text to measure
* @param style - The style to use
* @param resolution - The resolution to use
* @param fontCSS - The font css to use
* @param htmlTextData - The HTMLTextRenderData to write the SVG to
* @returns - The SVG as a url string
*/
export declare function getSVGUrl(text: string, style: HTMLTextStyle, resolution: number, fontCSS: string, htmlTextData: HTMLTextRenderData): string;