-
Notifications
You must be signed in to change notification settings - Fork 121
Description
Summary
After I install TinyTeX on Windows, the system is configured to look for fonts in a subdirectory of C:/Users/appveyor/AppData/Roaming/TinyTeX
, even though there is no user called appveyor
and this directory doesn't exist. This means that TeX is unable to use any fonts that I have installed using tlmgr
.
If I manually change C:/Users/appveyor/...
to C:/Users/erik/...
(my username) in C:/Users/erik/AppData/Roaming/TinyTeX/texmf-var/fonts/conf/fonts.conf
, the system is able to find fonts. I would expect this config file to refer to the correct path right after I install TinyTeX for the first time.
If I understand correctly, AppVeyor is the service used to build TinyTeX, so I wonder if maybe this path is accidentally hardwired in at some point during the build process?
Session info
> xfun::session_info('tinytex')
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042), RStudio 1.4.1717
Locale:
LC_COLLATE=English_United Kingdom.1252
LC_CTYPE=English_United Kingdom.1252
LC_MONETARY=English_United Kingdom.1252
LC_NUMERIC=C
LC_TIME=English_United Kingdom.1252
Package version:
graphics_4.1.0 grDevices_4.1.0 stats_4.1.0 tinytex_0.32.1
tools_4.1.0 utils_4.1.0 xfun_0.23
Steps to reproduce
Using Windows 10, logged in as the user erik
:
- In an R terminal, install TinyTeX:
tinytex::install_tinytex()
- In a PowerShell/cmd terminal, type:
fc-cache -fv
, and note the paths beginning withC:\Users\appveyor
in the output:
PS C:\Users\erik> fc-cache -fv
Note that it needs some time to create caches,
especially if there are many large font files.
Wait with patience.
Font directories:
C:/Windows/fonts
C:/Users/appveyor/AppData/Roaming/TinyTeX/texmf-dist/fonts/opentype
C:/Users/appveyor/AppData/Roaming/TinyTeX/texmf-dist/fonts/truetype
C:/Windows/fonts: caching, new cache contents: 1008 fonts, 0 dirs
C:/Users/appveyor/AppData/Roaming/TinyTeX/texmf-dist/fonts/opentype: skipping, no such directory
C:/Users/appveyor/AppData/Roaming/TinyTeX/texmf-dist/fonts/truetype: skipping, no such directory
C:/Users/erik/AppData/Roaming/TinyTeX/texmf-var/fonts/cache: cleaning cache directory
Workaround
In C:/Users/erik/AppData/Roaming/TinyTeX/texmf-var/fonts/conf/fonts.conf
, change the lines:
<dir>C:/Users/appveyor/AppData/Roaming/TinyTeX/texmf-dist/fonts/opentype</dir>
<dir>C:/Users/appveyor/AppData/Roaming/TinyTeX/texmf-dist/fonts/truetype</dir>
to:
<dir>C:/Users/erik/AppData/Roaming/TinyTeX/texmf-dist/fonts/opentype</dir>
<dir>C:/Users/erik/AppData/Roaming/TinyTeX/texmf-dist/fonts/truetype</dir>
By filing an issue to this repo, I promise that
- I have fully read the issue guide at https://yihui.org/issue/.
- I have provided the necessary information about my issue.
- If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
- If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included
xfun::session_info('tinytex')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/tinytex')
. - If I have posted the same issue elsewhere, I have also mentioned it in this issue.
- I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.