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

Conflict with base-R's file.choose() #36

Open
torden81 opened this issue May 24, 2023 · 12 comments
Open

Conflict with base-R's file.choose() #36

torden81 opened this issue May 24, 2023 · 12 comments

Comments

@torden81
Copy link

There seems to be a conflict with base-R's file.choose() when loading 'ragg' on Windows 10.

library(ragg)
file.choose()

leads to a "Select files" dialog where all fonts have disappeared.
The issue also exists for choose.files() and choose.dir() from the utils-package.

Interestingly, if executing from a fresh session:

file.choose()
library(ragg)
file.choose()

the fonts are shown correctly, indicating that calling file.choose() caches the fonts before the conflict with 'ragg'.

Any help with this issue would be appreciated.

@thomasp85
Copy link
Member

ragg does not interface in any way with base/utils file API so I'm a bit at a loss here...

Can the issue be reproduced with loading either systemfonts or textshaping?

@torden81
Copy link
Author

torden81 commented Oct 4, 2023

It is indeed caused by 'textshaping'. If I substitute 'ragg' for 'textshaping' in my description above, the exact same issue is triggered.

@thomasp85
Copy link
Member

Thanks for confirming - does loading systemfonts trigger it as well?

@torden81
Copy link
Author

torden81 commented Oct 4, 2023

No, systemfonts is fine.

@thomasp85
Copy link
Member

Thanks. Can you provide a screenshot of the behaviour as I don't fully understand the description in the first post🙂

@torden81
Copy link
Author

torden81 commented Oct 4, 2023

Here we go. :)
All letters within the file dialog have disappeared.

image

@thomasp85
Copy link
Member

Thanks - and this only happens with the file selector summoned by file.choose(), not anything outside of R in the general windows UI?

@torden81
Copy link
Author

torden81 commented Oct 5, 2023

It seems that it is only happening in the R session that summons the file selector by file.choose() and has 'textshaping' loaded.

I tested simultaneously with another R session that didn't have 'textshaping' loaded. There all letters were shown. Similarly I had no issues with the file selector in Edge, Firefox and Acrobat Reader.

Let me know if I can test something else.

@thomasp85 thomasp85 transferred this issue from r-lib/ragg Oct 6, 2023
@thomasp85
Copy link
Member

This issue seems to be connected with #35

@jeroen
Copy link
Member

jeroen commented Oct 6, 2023

Can you try installing the latest dev versions and test if the problem still exists?

install.packages("textshaping", repos = "https://r-lib.r-universe.dev")

@torden81
Copy link
Author

torden81 commented Oct 6, 2023

Can you try installing the latest dev versions and test if the problem still exists?

install.packages("textshaping", repos = "https://r-lib.r-universe.dev")

This installed the dev version '0.3.6.9000' and the problem persists.

@torden81
Copy link
Author

It seems that the issue is also connected to rstudio/rstudio#13078

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

No branches or pull requests

3 participants