Skip to content

use getComputedTextLength() to position characters #4

Description

@TheNeuralBit

In order to take into account the kerning between characters, incrementally add characters to a probe svg:text element and call getComputedTextLength() to position the latest char.

Alternatively just probe with two characters at a time to compute kerning between them exactly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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