measureText: (
text: string,
fontFamily: string,
fontSize: number,
bold: boolean,
italic: boolean,
) => number
Type Declaration
-
- (
text: string,
fontFamily: string,
fontSize: number,
bold: boolean,
italic: boolean,
): number
-
Parameters
- text: string
- fontFamily: string
- fontSize: number
- bold: boolean
- italic: boolean
Returns number
测量文本在指定样式下的宽度。