@nagwa-limited/kashida-engine
Version:
An engine to unify array of Arabic strings to the same width using Kashidas
10 lines (9 loc) • 556 B
TypeScript
import { TextWidths } from "./types";
/**
* Uses {@link getTextWidth} to compute and return the widths of the given texts of given font in pixels and the max width of all the sentences.
* @param { String[] } texts The texts to be rendered.
* @param { String } font The css font descriptor that text is to be rendered with (e.g. "bold 14px verdana").
* @returns { TextWidths } The widths of the texts inputted and the max text width.
*/
export declare const getTextsWidths: (texts: string[], font: string) => TextWidths;
export default getTextsWidths;