cesium icon indicating copy to clipboard operation
cesium copied to clipboard

Label outline aliasing

Open dslming opened this issue 2 years ago • 2 comments

Label outline aliasing when font size is big.

image

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

dslming avatar Jun 28 '23 07:06 dslming

Thanks for the report @dslming!

ggetz avatar Jun 28 '23 18:06 ggetz

Cause of the issue, and a possible fix, up for discussion:

  • https://github.com/CesiumGS/cesium/pull/13070

donmccurdy avatar Dec 02 '25 18:12 donmccurdy