code: private Font createfont(String fontName) {
  		Font f1 = null;
  		int pos=-1;
  		do {
  			f1 = FontFactory.getFont(fontName);
  			
  			if(f1.getBaseFont() != null) break;	// found a font, exit the do/while
  			
  			pos = fontName.lastIndexOf(' ');	// find the last space
  			if(pos>0) {
  				fontName = fontName.substring(0, pos );	// truncate it to the last space
  			}
  		} while(pos>0);
  		return f1;
  	}
docs: Create a font via the <code>FontFactory</code>
  
  @param fontName The font name to create
  @return The created <code>Font</code> object
  
  @since 2.0.8