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

Text variant that support "density" instead of "size" #49

Open
trevorld opened this issue Dec 2, 2021 · 1 comment
Open

Text variant that support "density" instead of "size" #49

trevorld opened this issue Dec 2, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@trevorld
Copy link
Owner

trevorld commented Dec 2, 2021

  • Current "text" pattern adjusts glyph size by adjusting the "size" parameter which sets the glyphs fontsize. This was easy to understand and implement and gets the job done.
  • It would be cool for an alternative implementation where one could adjust glyph size by setting the "density" parameter like with the "circle", "pch", "regular_polygon" patterns.
  • Theoretically could use something like systemfonts::glyph_info() to calculate an appropriate bounding box...
  • If implemented could add such support to existing "pch" pattern (since grid.points() supported arbitrary text characters)?
@trevorld
Copy link
Owner Author

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

No branches or pull requests

1 participant