@nagwa-limited/kashida-engine
Version:
An engine to unify array of Arabic strings to the same width using Kashidas
9 lines (8 loc) • 422 B
TypeScript
/**
* Unifies the widths of all the inputted texts to match the max width.
* @param { String[] } texts The texts to be unified.
* @param { String } font The css font descriptor that text is to be rendered with (e.g. "bold 14px verdana").
* @returns { String[] } The unified width text array.
*/
export declare const unifyTextsWidths: (texts: string[], font: string) => string[];
export default unifyTextsWidths;