Skip to content

String rotation #47

Open
Open
@c4da

Description

@c4da

It seems that string rotation is not working for 0.42.

        AffineTransform affineTransform = horizontalFont.getTransform();
        affineTransform.rotate(Math.toRadians(-90), 0, 0);
        Font rotatedFont = horizontalFont.deriveFont(affineTransform);
        gc.setFont(rotatedFont);
        gc.drawString(text, x, y);

Is there some workaround or am I doing something wrong?
I have fonts registered, and I have checked that Im drawing it as a string.
Maybe if I could force it to draw rotated text using shapes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions