Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are width and height required options? #15

Open
notchris opened this issue Sep 27, 2019 · 1 comment
Open

Are width and height required options? #15

notchris opened this issue Sep 27, 2019 · 1 comment

Comments

@notchris
Copy link

I was wondering if I could set the initial font-size (I don't think size does that?). For instance, say I did not want to set a width / height, but instead set '36px'. Is this possible?

@rubillionaire
Copy link

That is possible: https://github.com/mikolalysenko/vectorize-text/blob/master/README.md?plain=1#L126

const mesh = vectorizeText(char, {
  triangles: true,
  textBaseline: "alphabetic",
  font: 'Arial',
  size: '10px',
  textAlign: 'center',
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants