]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Add note about loading fonts and chart updates (#8214)
authorEvert Timberg <evert.timberg+github@gmail.com>
Mon, 21 Dec 2020 21:10:13 +0000 (16:10 -0500)
committerGitHub <noreply@github.com>
Mon, 21 Dec 2020 21:10:13 +0000 (16:10 -0500)
docs/docs/general/fonts.md

index 946027a88370b38b1171c3f63bfc8b27a1302777..e45d8fd8cda7989ac450914565a1375a0073b508 100644 (file)
@@ -37,3 +37,7 @@ let chart = new Chart(ctx, {
 ## Missing Fonts
 
 If a font is specified for a chart that does exist on the system, the browser will not apply the font when it is set. If you notice odd fonts appearing in your charts, check that the font you are applying exists on your system. See [issue 3318](https://github.com/chartjs/Chart.js/issues/3318) for more details.
+
+## Loading Fonts
+
+If a font is not cached and needs to be loaded, charts that use the font will need to be updated once the font is loaded. This can be accomplished using the [Font Loading APIs](https://developer.mozilla.org/en-US/docs/Web/API/CSS_Font_Loading_API). See [issue 8020](https://github.com/chartjs/Chart.js/issues/8020) for more details.