vendor/chart.js/Chart.js
function(options) {
		var globalDefaults = core_defaults.global;
		var size = valueOrDefault(options.fontSize, globalDefaults.defaultFontSize);
		var font = {
			family: valueOrDefault(options.fontFamily, globalDefaults.defaultFontFamily),
			lineHeight: helpers_core.options.toLineHeight(valueOrDefault(options.lineHeight, globalDefaults.defaultLineHeight), size),
			size: size,
			style: valueOrDefault(options.fontStyle, globalDefaults.defaultFontStyle),
			weight: null,
			string: ''
		};

		font.string = toFontString(font);
		return font;
	}
function(options) {
		var globalDefaults = core_defaults.global;
		var size = valueOrDefault(options.fontSize, globalDefaults.defaultFontSize);
		var font = {
			family: valueOrDefault(options.fontFamily, globalDefaults.defaultFontFamily),
			lineHeight: helpers_core.options.toLineHeight(valueOrDefault(options.lineHeight, globalDefaults.defaultLineHeight), size),
			size: size,
			style: valueOrDefault(options.fontStyle, globalDefaults.defaultFontStyle),
			weight: null,
			string: ''
		};

		font.string = toFontString(font);
		return font;
	}
function ( options ) { var globalDefaults = core_defaults . global ; var size = valueOrDefault ( options . fontSize , globalDefaults . defaultFontSize ) ; var font = { family : valueOrDefault ( options . fontFamily , globalDefaults . defaultFontFamily ) , lineHeight : helpers_core . options . toLineHeight ( valueOrDefault ( options . lineHeight , globalDefaults . defaultLineHeight ) , size ) , size : size , style : valueOrDefault ( options . fontStyle , globalDefaults . defaultFontStyle ) , weight : null , string : '' } ; font . string = toFontString ( font ) ; return font ; }
Parses font options and returns the font object.
@param {object} options - A object that contains font options to be parsed.
@return {object} The font object.
@todo Support font.* options and renamed to toFont().
@private
Parses font options and returns the font object .