Screen helpers · function

pixelTextCells

Cells a string occupies horizontally, including inter-glyph gaps.

Explained in Recording and clips.

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

Parameters

ParameterTypeDescription
textstring