code: private void setToDefaultFamily(String familyname){
          switch (Font.getFamilyIndex(familyname)) {
              case Font.COURIER:
                  this.fontName = "Courier";
                  break;
              case Font.HELVETICA:
                  this.fontName = "Arial";
                  break;
              case Font.SYMBOL:
                  this.fontName = "Symbol";
                  this.charset = 2;
                  break;
              case Font.TIMES_ROMAN:
                  this.fontName = "Times New Roman";
                  break;
              case Font.ZAPFDINGBATS:
                  this.fontName = "Windings";
                  break;
              default:
                  this.fontName = familyname;
          }
      }
docs: Sets the correct font name from the family name.
  
  @param familyname The family name to set the name to.