available_fonts_hash.put("Serif",new Font("SansSerif",Font.PLAIN,1)); available_fonts_hash.put("Serif",new Font("Monospaced",Font.PLAIN,1));
available_fonts_hash.put("SansSerif",new Font("SansSerif",Font.PLAIN,1));  available_fonts_hash.put("Monospaced",new Font("Monospaced",Font.PLAIN,1));
    public FontResolverTest() {        GraphicsEnvironment gfx = GraphicsEnvironment.getLocalGraphicsEnvironment();        String[] available_fonts = gfx.getAvailableFontFamilyNames();        //u.p("available fonts =");        //u.p(available_fonts);        instance_hash = new HashMap();                // preload the font map with the font names as keys        // don't add the actual font objects because that would be a waste of memory        // we will only add them once we need to use them        // put empty strings in instead        available_fonts_hash = new HashMap();        for(int i=0; i<available_fonts.length; i++) {            available_fonts_hash.put(available_fonts[i],new String());        }                // preload sans, serif, and monospace into the available font hash        available_fonts_hash.put("Serif",new Font("Serif",Font.PLAIN,1));        available_fonts_hash.put("Serif",new Font("SansSerif",Font.PLAIN,1));        available_fonts_hash.put("Serif",new Font("Monospaced",Font.PLAIN,1));    }