src/util/Font.js
function (size, style, variant, weight, family, horizontalAlignment) {
            /*
             * All properties of Font are intended to be private and must be accessed via public getters and setters.
             */

            if (!size) {
                throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "Font", "constructor",
                    "missingSize"));
            }
            else if (size <= 0) {
                throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "Font", "constructor",
                    "invalidSize"));
            }
            else {
                this._size = size;
            }

            this.style = style || "normal";
            this.variant = variant || "normal";
            this.weight = weight || "normal";
            this.family = family || "sans-serif";
            this.horizontalAlignment = horizontalAlignment || "center";
        }
function (size, style, variant, weight, family, horizontalAlignment) {
            /*
             * All properties of Font are intended to be private and must be accessed via public getters and setters.
             */

            if (!size) {
                throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "Font", "constructor",
                    "missingSize"));
            }
            else if (size <= 0) {
                throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "Font", "constructor",
                    "invalidSize"));
            }
            else {
                this._size = size;
            }

            this.style = style || "normal";
            this.variant = variant || "normal";
            this.weight = weight || "normal";
            this.family = family || "sans-serif";
            this.horizontalAlignment = horizontalAlignment || "center";
        }
function ( size , style , variant , weight , family , horizontalAlignment ) { /*
             * All properties of Font are intended to be private and must be accessed via public getters and setters.
             */ if ( ! size ) { throw new ArgumentError ( Logger . logMessage ( Logger . LEVEL_SEVERE , "Font" , "constructor" , "missingSize" ) ) ; } else if ( size <= 0 ) { throw new ArgumentError ( Logger . logMessage ( Logger . LEVEL_SEVERE , "Font" , "constructor" , "invalidSize" ) ) ; } else { this . _size = size ; } this . style = style || "normal" ; this . variant = variant || "normal" ; this . weight = weight || "normal" ; this . family = family || "sans-serif" ; this . horizontalAlignment = horizontalAlignment || "center" ; }
Construct a font descriptor. See the individual attribute descriptions below for possible parameter values.
@param {Number} size The size of font.
@param {String} style The style of the font.
@param {String} variant The variant of the font.
@param {String} weight The weight of the font.
@param {String} family The family of the font.
@param {String} horizontalAlignment The vertical alignment of the font.
@alias Font
@constructor
@classdesc Holds attributes controlling the style, size and other attributes of {@link Text} shapes and
the textual features of {@link Placemark} and other shapes. The values used for these attributes are those
defined by the [CSS Font property]{@link http://www.w3schools.com/cssref/pr_font_font.asp}.
Construct a font descriptor . See the individual attribute descriptions below for possible parameter values .