Package org.geotools.renderer.style

Examples of org.geotools.renderer.style.FontCache


        FontData[] fontData = Display.getCurrent().getFontList(null, true);
        Set<String> fontSet = new HashSet<String>();
        for( FontData fd : fontData ) {
            fontSet.add(fd.getName());
        }
        Set<String> fontCache = new TreeSet<String>((new FontCache()).getAvailableFonts());
        fontCache.retainAll(fontSet);
        return (String[]) fontCache.toArray(new String[0]);
    }
View Full Code Here


        reloadFontCache();
    }

    void reloadFontCache() {
        List<Font> fonts = loadFontsFromDataDirectory();
        final FontCache cache = FontCache.getDefaultInstance();
        cache.resetCache();
        for (Font font : fonts) {
            cache.registerFont(font);
        }
    }
View Full Code Here

        }
    }

    void reloadFontCache() {
        List<Font> fonts = loadFontsFromDataDirectory();
        final FontCache cache = FontCache.getDefaultInstance();
        cache.resetCache();
        for (Font font : fonts) {
            cache.registerFont(font);
        }
    }
View Full Code Here

*/
public class FontListResource extends MapResource {

    @Override
    public Map getMap() throws Exception {
        FontCache cache = FontCache.getDefaultInstance();
       
        HashMap map = new HashMap();
        map.put("fonts", cache.getAvailableFonts());

        return map;
    }
View Full Code Here

*/
public class FontListResource extends MapResource {

    @Override
    public Map getMap() throws Exception {
        FontCache cache = FontCache.getDefaultInstance();
       
        HashMap map = new HashMap();
        map.put("fonts", cache.getAvailableFonts());

        return map;
    }
View Full Code Here

TOP

Related Classes of org.geotools.renderer.style.FontCache

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.