code: public final double getWidth(int line) {
          if (strArray.length == 0) return 0.0;
  
          try {
              return textRenderer.getBounds(strArray[line]).getWidth();
          } catch (GLException e) {
              reset = true;
          }
  
          return 0.0;
      }
docs: Returns letter's width of the current font at its current size and line.
  
  @param line The number of lines.
  @return The letter's width.
  
  @throws GLException If the textRenderer is not valid; calls the reset method and creates a
  new textRenderer.