code: public static FontUIResource getFont(PropertyOwner propertyOwner, Map<String,Object> properties, boolean returnDefaultIfNone)
      {
          String strFontName = ScreenUtil.getPropery(ScreenUtil.FONT_NAME, propertyOwner, properties, null);
          String strFontSize = ScreenUtil.getPropery(ScreenUtil.FONT_SIZE, propertyOwner, properties, null);
          String strFontStyle = ScreenUtil.getPropery(ScreenUtil.FONT_STYLE, propertyOwner, properties, null);
  
          if ((strFontName == null) || (strFontName.length() == 0))
          {
              if (!returnDefaultIfNone)
                  return null;
              strFontName = Font.DIALOG;  // Default font
          }
          int iSize = 18; // Default size
          if ((strFontSize != null) && (strFontSize.length() > 0))
              iSize = Integer.parseInt(strFontSize);      
          int iStyle = Font.PLAIN;
          if ((strFontStyle != null) && (strFontStyle.length() > 0))
              iStyle = Integer.parseInt(strFontStyle);
          return new FontUIResource(strFontName, iStyle, iSize);
      }
docs: Create the font saved in this key; null = Not found.
  (Utility method).
  Font is saved in three properties (font.fontname, font.size, font.style).
  @param returnDefaultIfNone TODO
  @return The registered font.