1. A concise explanation of the problem you’re experiencing.
After upgrading from Cesium 1.62 to 1.63 / 1.63.1 labels on mobile device have too much space between letters and some characters are not inline
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
viewer.entities.add({
position: Cesium.Cartesian3.fromDegrees(result.longitude, result.latitude),
label: {
text: result.city,
font: font,
fillColor: Cesium.Color.WHITE,
outlineColor: Cesium.Color.BLACK,
outlineWidth: 2,
style: Cesium.LabelStyle.FILL_AND_OUTLINE,
verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
heightReference: Cesium.HeightReference.NONE,
pixelOffset: new Cesium.Cartesian2(0, -5),
translucencyByDistance: new Cesium.NearFarScalar(minDistance, 1.0,
maxDistance, 0.0),
disableDepthTestDistance: Number.POSITIVE_INFINITY,
}
});
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
4. The Cesium version you’re using, your operating system and browser.
1.63.1