fontMapping = fcr.getFontMapping(); fontEncoding = fcr.getFontEncoding();
	public synchronized static void prepareFonts()	{		if(prepared)			return;				        FontConfigReader fcr = new FontConfigReader();   		        //read the embeded font path.		String embededFontPath = fcr.getEmbededFontPath();		if ( null != embededFontPath )		{			FontFactory.registerDirectory(embededFontPath);		}		        if (fcr.parseConfigFile()) 		        {	    		fontMapping = fcr.getFontMapping();    		fontEncoding = fcr.getFontEncoding();    		    		//read font path from config file.    		List fontPaths = fcr.getTrueTypeFontPaths();    		if ( fontPaths.isEmpty( ) )    		{    			registerDirectories();    		}    		else			{				for (Iterator i = fontPaths.iterator(); i.hasNext();)				{					String fontPath = (String) i.next();					File file = new File(fontPath);					if (file.exists())					{						if (file.isDirectory())						{							FontFactory.registerDirectory(fontPath);						} else						{							FontFactory.register(fontPath);						}					}				}			}        }        else        {        	registerDirectories();        }        addDefaultFontMapping();        addDefaultFontEncoding();		prepared = true;	}