microsoft / microsoft/SandDance
[bug] fontFamily viewerOptions doesn't work
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.1k
- Forks
- 573
- Avg merge
- 8d 9h
- Merged PRs (30d)
- 4
Description
Prerequisites
- I am running the latest version
- I checked the documentation and found no answer
- I checked to make sure that this issue has not already been filed
Expected Behavior
fontFamily should allow modifying canvas font-family.
Current Behavior
It doesn't work.
Steps to Reproduce
- Clone public repo: https://github.com/charnould/sanddance-bug-1.git
- Open
index.htmlwithLiver-serverto avoidCORSissue - See that canvas font is
sans serif - See that source code indicates
fontFamily: "Monospace"--> That's the bug!
Expected result
Canvas font should be Monospace
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproduction repository's index.html and the ViewerOptions fontFamily documentation, then run it with Liver-server as described to confirm the canvas uses sans serif despite the Monospace setting. Trace the fontFamily option into the canvas rendering path; done means the configured Monospace font is visibly applied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100