Examples of loadFont()


Examples of com.github.axet.lookup.OCR.loadFont()

        OCR l = new OCR(0.70f);

        // will go to com/github/axet/lookup/fonts folder and load all font
        // familys (here is only font_1 family in this library)
//        l.loadFontsDirectory(Main.class, new File("fonts"));
        l.loadFont(Main.class, new File("fonts//font2"));

        String str = "jjj";
        // recognize using all familys set
        str = l.recognize(Capture.load("kwh.png"));
        System.out.println(str);
View Full Code Here

Examples of processing.core.PApplet.loadFont()

    if(arg instanceof PFont) {
      _font = (PFont) arg;
    } else if(arg instanceof String) {
      String str = (String) arg;
      _font = (str.indexOf(".vlw",str.length()-4) > 0)?
        app.loadFont(str) : app.createFont(str,64);
    } else if(arg instanceof HText) {
      _font = ((HText) arg)._font;
    } else if(arg == null) {
      _font = app.createFont("SansSerif",64);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.