ganttrify icon indicating copy to clipboard operation
ganttrify copied to clipboard

Set font to one installed by default

Open danmaclean opened this issue 3 years ago • 2 comments

Test code failed on my macOS RStudio installation. Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, : polygon edge not found . Traced to uninstalled font. Change to installed Arial font fixes issue.

danmaclean avatar Sep 21 '21 14:09 danmaclean

Thanks for this feedback.

The readme already includes a notice:

[all examples in this page will use the Roboto condensed font; if it is not installed, you can use the default sans. See the Troubleshooting section at the bottom of this readme.]

I will consider making it more prominent.

Also, "Arial" is not available on all operating systems by default (notably, not on Linux).

The default font in the package is already a generic "sans". Since I care about the looks, I also care about the font, which is why I used a custom fonts in the examples. I may well update the package to check for font availability and give an informative warning/error. I opened the relevant issue: https://github.com/giocomai/ganttrify/issues/22

Again, feedback appreciated.

giocomai avatar Sep 22 '21 06:09 giocomai

Thanks for response, I missed the notice in the README. I think it was likely off screen when I cut and paste the example to test the package. I imagine it's hard to prepare for all user's mistakes! Appreciate your willingness to take account of 'busy' users. This is the best of the gantt chart tools I looked at btw!

danmaclean avatar Sep 22 '21 09:09 danmaclean