Skip to content

KBE3D / KBCore / Cesium / measureText

函数: measureText()

measureText(): void

Computes dimensions for text, based on current canvas state.

Rounds metrics, excluding width, to whole pixels. This is purely to minimize rendering differences with migration to in-browser measureText(), and may be revised in the future. See: github.com/CesiumGS/cesium/pull/13081

返回

void

KBE3D @3.0.0 Copyright © 2024-present KBE3D