Tabnine Logo
PApplet.createFont
Code IndexAdd Tabnine to your IDE (free)

How to use
createFont
method
in
processing.core.PApplet

Best Java code snippets using processing.core.PApplet.createFont (Showing top 7 results out of 315)

origin: org.processing/core

 /**
  * Used by PGraphics to remove the requirement for loading a font!
  */
 protected PFont createDefaultFont(float size) {
//    Font f = new Font("SansSerif", Font.PLAIN, 12);
//    println("n: " + f.getName());
//    println("fn: " + f.getFontName());
//    println("ps: " + f.getPSName());
  return createFont("Lucida Sans", size, true, null);
 }

origin: ajavamind/Processing-Cardboard

/**
 * Used by PGraphics to remove the requirement for loading a font!
 */
protected PFont createDefaultFont(float size) {
  return createFont("SansSerif", size, true, null);
}
origin: org.processing/core

public PFont createFont(String name, float size, boolean smooth) {
 return createFont(name, size, smooth, null);
}
origin: org.processing/core

public PFont createFont(String name, float size) {
 return createFont(name, size, true, null);
}
origin: ajavamind/Processing-Cardboard

public PFont createFont(String name, float size) {
  return createFont(name, size, true, null);
}
origin: ajavamind/Processing-Cardboard

public PFont createFont(String name, float size, boolean smooth) {
  return createFont(name, size, smooth, null);
}
origin: mirador/mirador

public PFont loadFont(String filename, int size) {
 String id = filename + "@" + size + "pt";
 PFont font = fontCache.get(id);
 if (font == null) {
  font = app.createFont(filename, size);
  fontCache.put(id, font);
 }
 return font;
}

processing.corePAppletcreateFont

Javadoc

Create a bitmap font on the fly from either a font name that's installed on the system, or from a .ttf or .otf that's inside the data folder of this sketch.

Use 'null' for the charset if you want to dynamically create character bitmaps only as they're needed.

Popular methods of PApplet

  • constrain
  • createGraphics
    Create an offscreen graphics surface for drawing, in this case for a renderer that writes to a file
  • loadStrings
    ( begin auto-generated from loadStrings.xml ) Reads the contents of a file or url and creates a Stri
  • saveStrings
    ( begin auto-generated from saveStrings.xml ) Writes an array of strings to a file, one line per str
  • abs
  • createImage
    ( begin auto-generated from createImage.xml ) Creates a new PImage (the datatype for storing images)
  • createShape
  • createWriter
    ( begin auto-generated from createWriter.xml ) Creates a new file in the sketch folder, and a PrintW
  • loadImage
  • main
    main() method for running this class from the command line. Usage: PApplet [options] [s
  • max
  • parseInt
  • max,
  • parseInt,
  • random,
  • round,
  • split,
  • sqrt,
  • unhex,
  • arrayCopy,
  • ceil,
  • checkExtension

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • BoxLayout (javax.swing)
  • Join (org.hibernate.mapping)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now