rstudio / rstudio

RStudio is an integrated development environment (IDE) for R
https://posit.co/products/open-source/rstudio/
Other
4.69k stars 1.09k forks source link

Fonts not recognised #12454

Closed eliocamp closed 2 weeks ago

eliocamp commented 1 year ago

System details

RStudio Edition : Desktop 
RStudio Version : 2022.12.0 Build 353
OS Version      :  elementary OS 6.1 Jólnir Built on Ubuntu 20.04.5 LTS  Linux 5.15.0-56-generic
R Version       :  4.2.1

Steps to reproduce the problem

Go to Tools -> Global Options -> Appearance. The list of available fonts doesn't include all fonts in the system.

Describe the problem in detail

I want to use Fira Code, which I have installed and could use in previous versions of RStudio. Now, I only see about 10 fonts:

image

Describe the behavior you expected

See a list of all available fonts, including Fira Code.

sharon-wang commented 1 year ago

Thanks for opening this issue!

Since you were seeing the additional fonts previously, this sounds like a possible regression after updating to 2022.12.0 Build 353. It's possible your font preferences weren't successfully transferred to the new version, since user preference handling changed in this version.

If you go to the menu bar Help > Diagnostics > View All Prefs (or you can run View(.rs.allPrefs())) and look for the Preference browser_fixed_width_fonts, do you see Fira Code in its Value? It should be a list of various fonts.

eliocamp commented 1 year ago

I now have Fira Code through this workaround.

browser_fixed_width_fonts does list a lot of fonts, but many of them are not available in the font picker.

image

BTW, I'm now on RStudio 2023.03.0+386 "Cherry Blossom" Release (3c53477afb13ab959aeb5b34df1f10c237b256c3, 2023-03-09) for Ubuntu Bionic Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) rstudio/2023.03.0+386 Chrome/108.0.5359.179 Electron/22.0.3 Safari/537.36

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

eliocamp commented 1 year ago

The issue is still current.

github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.

eliocamp commented 6 months ago

The issue is still current, Mx bot.

gtritchie commented 4 months ago

Moving to next release.

kevinushey commented 1 month ago

I wasn't able to reproduce on Ubuntu 24.04, using Fira Code 6.2 (downloaded from https://github.com/tonsky/FiraCode/releases/tag/6.2; installed the TTF Regular font version). I can then select and use Fira Code within RStudio.

ronblum commented 3 weeks ago

I installed Fira Code on Ubuntu 20.04, but it still doesn't show up in RStudio Desktop Kousa Dogwood 2024.11.0-daily+299. But this already works correctly on Ubuntu 24.04, in the current release, Cranberry Hibiscus 2024.09.0+375. So it looks like this issue depends on the version of Ubuntu.

kevinushey commented 3 weeks ago

If the issue is resolved on newer releases of Ubuntu, I'm inclined to just close this issue. Ubuntu 20.04 will be EOL next April, so it's not worth investing time to figure out why it works on a soon-to-be-out-of-support OS.

gtritchie commented 2 weeks ago

Moving back to triage so we can discuss.