src/helpers/helpers.options.js
function toFontString(font) {
	if (!font || helpers.isNullOrUndef(font.size) || helpers.isNullOrUndef(font.family)) {
		return null;
	}

	return (font.style ? font.style + ' ' : '')
		+ (font.weight ? font.weight + ' ' : '')
		+ font.size + 'px '
		+ font.family;
}
function toFontString(font) {
	if (!font || helpers.isNullOrUndef(font.size) || helpers.isNullOrUndef(font.family)) {
		return null;
	}

	return (font.style ? font.style + ' ' : '')
		+ (font.weight ? font.weight + ' ' : '')
		+ font.size + 'px '
		+ font.family;
}
function toFontString ( font ) { if ( ! font || helpers . isNullOrUndef ( font . size ) || helpers . isNullOrUndef ( font . family ) ) { return null ; } return ( font . style ? font . style + ' ' : '' ) + ( font . weight ? font . weight + ' ' : '' ) + font . size + 'px ' + font . family ; }
Converts the given font object into a CSS font string.
@param {object} font - A font object.
@return {string} The CSS font string. See https://developer.mozilla.org/en-US/docs/Web/CSS/font
@private
Converts the given font object into a CSS font string .