I am trying to specify a custom CSS font for my chart, which is generated via the Google Visualization API. I've tried speccing the font both within my CSS style-sheet, as well as using the Google fonts.googleapis.com
within my Google Visualization API chartOptions:
var options = {
fontName : 'FranchiseRegular',
tooltip: { textStyle: { fontName: 'Verdana', fontSize: 12 } }
};
within my style.css:
@font-face {
font-family: 'FranchiseRegular';
src: url('/_fonts/franchise-bold-webfont.eot');
src: url('/_fonts/franchise-bold-webfont.eot?#iefix') format('embedded-opentype'),
url('/_fonts/franchise-bold-webfont.woff') format('woff'),
url('/_fonts/franchise-bold-webfont.ttf') format('truetype'),
url('/_fonts/franchise-bold-webfont.svg#FranchiseRegular') format('svg');
font-weight: normal;
font-style: normal;
}
within my HEAD tag:
<link href='http://fonts.googleapis.com/css?family=Magra:400,700'
rel='stylesheet' type='text/css'>
So, the Verdana call works great, all tooltips show correctly as Verdana. But the title, axis labels, and chart labels all kick out to TimesNewRoman. I'd like them to display as either the FranchiseRegular as specified in the CSS, or as Magra as specified in the HEAD tag.
I have thoroughly explored the options here: https://developers.google.com/chart/interactive/docs/gallery/bubblechart
And the heart of the question is, what is the proper syntax for
fontName: <global-font-name>
If you could please supply the proper syntax for my fontName within the chartOptions to accomplish either of these, I would greatly appreciate. Thanks in advance! :)