(fontBuf: IFontBuffers, text: string, opts: IFontOpts)
| 309 | } |
| 310 | |
| 311 | export function measureText(fontBuf: IFontBuffers, text: string, opts: IFontOpts) { |
| 312 | return measureTextWidth(fontBuf, text, opts.size, opts.faceName); |
| 313 | } |
| 314 | |
| 315 | export function drawText(fontBuf: IFontBuffers, text: string, dx: number, dy: number, opts: IFontOpts) { |
| 316 | writeTextToBuffer(fontBuf, text, opts.color, dx, dy, opts.size, opts.mtx, opts.faceName); |
no test coverage detected