microsoft / microsoft/SandDance

[bug] fontFamily viewerOptions doesn't work

Open
#617 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Clone public repo: https://github.com/charnould/sanddance-bug-1.git
  2. Open index.html with Liver-server to avoid CORS issue
  3. See that canvas font is sans serif
  4. 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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.