UNPKG

@gpa-gemstone/helper-functions

Version:
13 lines (12 loc) 603 B
/** * This function returns the height of a piece of text given a font, fontsize, and a word * @param font: Determines font of given text * @param fontSize: Determines size of given font * @param word: Text to measure * @param cssStyle: Optional css style * @param width: Optional set width of measurement (default: 'auto') * @param whiteSpace: Optional white space arguement (default: 'no-wrap') * @returns Height of text */ declare function GetTextHeight(font: string, fontSize: string, word: string, cssStyle?: string, width?: string, whiteSpace?: string): number; export { GetTextHeight };