Skip to content

Recommended way to position drawing within canvas? #2

Description

@jordan-loeser

What is the recommended way to change the position where the bitmap is drawn on the canvas using draw2canvas()? I noticed that x and y are hardcoded to start at 0 in the function definition (below) and using context.moveTo() does not seem to have any effect.

https://github.com/tomchen/bdfparser-js/blob/71a4ee35ddabe2dd6d2a060e03004e285e43e9c4/src/bdfparser.ts#L1796-L1829

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions