Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uprequest: tilde path expansion #1
Comments
|
Thank you for the report. This seems to be a real problem. I'll take a look and fix it in the next version. |
|
I wasn't certain if this fits better in |
|
Actually |
I haven't used
sysfontsdirectly, but I'm playing around withshowtext-- I think it's a very helpful tool, and I'll likely work it into some of my projects. Thanks!This issue was "triggered" by
showtextbut traces down to this package. When I was testingshowtextwith a font I have in a project directory, I tried to load a font using a tilde-path, and it failed:It works fine if I use the full path myself or use
normalizePath()(or evenpath.expand()) manually. (The problem appears to arise fromsysfonts:::.check.font.dir()taking the path literally.)Even though it's mostly cosmetic, any issues with including
normalizePath()in.check.font.path()? Alternatively, would including it inshowtext::font.add()be better?