cfonts
Version:
Sexy ANSI fonts for the console
11 lines (10 loc) • 498 B
TypeScript
/**
* Return the max width of a character by looking at its longest line
*
* @param {array} character - The character array from the font face object
* @param {number} fontLines - The number of lines this font has per character
* @param {number} letterSpacing - The user defined letter spacing
*
* @return {number} - The length of a longest line in a character
*/
export function CharLength(character: any[], fontLines: number, letterSpacing: number): number;