code: function (drawContext) {
              if (!drawContext) {
                  throw new ArgumentError(Logger.logMessage(Logger.LEVEL_SEVERE, "TextRenderer", "constructor",
                      "missingDc"));
              }
  
              // Internal use only. Intentionally not documented.
              this.canvas2D = document.createElement("canvas");
  
              // Internal use only. Intentionally not documented.
              this.ctx2D = this.canvas2D.getContext("2d");
  
              // Internal use only. Intentionally not documented.
              this.dc = drawContext;
  
              /**
               * Indicates if the text will feature an outline around its characters.
               * @type {boolean}
               */
              this.enableOutline = true;
  
              // Internal use only. Intentionally not documented.
              this.lineSpacing = 0.15; // fraction of font size
  
              /**
               * The color for the Text outline.
               * Its default has half transparency to avoid visual artifacts that appear while fully opaque.
               * @type {Color}
               */
              this.outlineColor = new Color(0, 0, 0, 0.5);
  
              /**
               * Indicates the text outline width (or thickness) in pixels.
               * @type {number}
               */
              this.outlineWidth = 4;
  
              /**
               * The text color.
               * @type {Color}
               */
              this.textColor = new Color(1, 1, 1, 1);
  
              /**
               * The text size, face and other characteristics, as described in [Font]{@link Font}.
               * @type {Font}
               */
              this.typeFace = new Font(14);
          }
docs: Constructs a TextRenderer instance.
  @alias TextRenderer
  @constructor
  @classdesc Provides methods useful for displaying text. An instance of this class is attached to the
  WorldWindow {@link DrawContext} and is not intended to be used independently of that. Applications typically do
  not create instances of this class.
  @param {drawContext} drawContext The current draw context. Typically the same draw context that TextRenderer
  is attached to.
  @throws {ArgumentError} If the specified draw context is null or undefined.