Skip to content

Text behaviour has regressed #84

@xenomote

Description

@xenomote

When running the typewriter example I noticed that the behaviour of the ext/text/Text type has regressed from the original pixel repository. It from looking at the git blame it seems most that this introduced by the changes @roipoussiere made here:

pixel/ext/text/text.go

Lines 261 to 262 in 2298e16

offset := txt.Orig.Sub(txt.Bounds().Max.Add(txt.Bounds().AnchorPos(txt.anchor.Opposite())))
txt.mat = pixel.IM.Moved(offset).Chained(txt.mat)

Because of this regression it is no longer possible to accurately position text by setting the txt.Dot vector to the desired position

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