Skip to content

Label outline aliasing  #11377

@dslming

Description

@dslming

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions