Skip to content

Text: support pixel offsets #1392

@swharden

Description

@swharden

I can place text at a point on the chart using coordinates, and I can adjust its alignment by customizing the font, but I'd love to be able to shift the relative rendering by a specified number of pixels (e.g., 5px offset down and to the right). The Test plot type could have fields like PixelOffsetX and PixelOffsetY which default to 0.

image

Those fields would simply get added to these pixel values here:

float pixelX = dims.GetPixelX(X);
float pixelY = dims.GetPixelY(Y);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions