REditorSupport / REditorSupport/vscode-R

No fonts detected for basic plot

Open
#1,505 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.2k
Forks
139
Avg merge
2h 46m
Merged PRs (30d)
5

Description

Describe the bug

r$> hist(c(1,2,3,1,2,3))
Warning message:
No fonts detected on your system. Using an empty font. 

My config:

"r.plot.useHttpgd": true

The output:

image

Expected behavior

Outside vscode-R this works as expected. It seems to be that my font setup is not correctly set for httpgd.

Environment (please complete the following information):

  • OS: macOS Sonoma 14.3.1
  • VSCode Version: 1.87.2
  • R Version: 4.3.3
  • vscode-R version: 2.8.2

Also commented in https://github.com/nx10/httpgd/issues/138#issuecomment-2016534615

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the basic histogram with "r.plot.useHttpgd": true in the stated macOS, VS Code, R, and vscode-R versions, then review the related httpgd issue comment. Trace the font setup used by the httpgd-backed plot path; done means the histogram renders fonts without the warning while remaining correct outside vscode-R.

Written by the indexing model from the issue text.

Assessment

Tech stack
r, typescript, vscode
Domain
data-visualization, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.