cesium
cesium copied to clipboard
Label outline aliasing
Label outline aliasing when font size is big.
const viewer = new Cesium.Viewer("cesiumContainer");
viewer.scene.globe.show = false;
viewer.entities.add({
position: new Cesium.Cartesian3(0, 0, 0),
label: {
text: "Cesium",
font: "128px 微软雅黑",
scale: 2,
fillColor: new Cesium.Color(255 / 255, 255 / 255, 255 / 255),
showBackground: false,
outlineColor: Cesium.Color.RED,
outlineWidth: 2,
style: Cesium.LabelStyle.FILL_AND_OUTLINE,
},
});
Sandcastle example: live example
Browser: chrome 114
Operating System: windows 10
Thanks for the report @dslming!
Cause of the issue, and a possible fix, up for discussion:
- https://github.com/CesiumGS/cesium/pull/13070