gridpattern
gridpattern copied to clipboard
Text variant that support "density" instead of "size"
- 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)?
- An alternative to
systemfonts::glyph_info()would be to use the functions in https://github.com/yutannihilation/string2path and then re-normalize their x/y calculations