Skip to content

use getComputedTextLength() to position characters #4

@TheNeuralBit

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.

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