Screen helpers · function

pixelTextSize

Pixel width and height of a string at a given cell size.

Explained in Recording and clips.

function pixelTextSize(text: string, cell: number):
import { pixelTextSize } from '@driftengine/core';

Parameters

ParameterTypeDescription
textstring
cellnumber