Type Alias BpxTextMeasurement

BpxTextMeasurement: {
    offset: BpxVector2d;
    wh: BpxVector2d;
}

Text measurement calculated by a headless text rendering with use of BeetPxDraw.measureText.

Type declaration

  • offset: BpxVector2d

    The offset of the text placement in relation to where it was intended to be placed. Useful when the text is meant to be drawn centered, so it starts half of its width/height to the left/up from the given point.

  • wh: BpxVector2d

    The size of the drawn text.