chartjs / chartjs/Chart.js

Font in root of the options does not get applied.

Open
#10,375 8 comments 2 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

When specifieng font options in the root of the options object it should get applied to all the text which does not get overriden explicetly.

### Current behavior

It does nothing. While according to the current typings it should make it the default base font:
https://github.com/chartjs/Chart.js/blob/cf780a5db52e991c8c29577557c28277e35e040e/types/index.esm.d.ts#L1466-L1470

### Reproducible sample

https://jsfiddle.net/2L1pdtsz/

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

Found this while working on #10364

### chart.js version

3.7.1

### Browser name and version

_No response_

### Link to your project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.