Skip to content

Add text rotation options #42

@ajstarks

Description

@ajstarks

Problem / Use Case

Need to create rotated text, selectively.

Proposed Solution

Add rotation to TextOperation struct, and add a method that specifies the text rotation.
Specifying 0 for the rotation option has the same effect as now, no rotation.

// Example of desired API (if applicable)
func (p *Page) AddCustomText(text string, x, y float64, font *CustomFont, size, rotation float64, color Color) {

}
// ... your proposed usage

Alternatives Considered

Manipulating the graphics context via Surface has no effect on text.
I notice it's possible to rotate watermarks, but not general text.

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions