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

How to use
createDefaultFont
method
in
processing.core.PApplet

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

origin: ajavamind/Processing-Cardboard

/**
 * First try to create a default font, but if that's not possible, throw
 * an exception that halts the program because textFont() has not been used
 * prior to the specified method.
 */
protected void defaultFontOrDeath(String method, float size) {
 if (parent != null) {
  textFont = parent.createDefaultFont(size);
 } else {
  throw new RuntimeException("Use textFont() before " + method + "()");
 }
}
origin: org.processing/core

/**
 * First try to create a default font, but if that's not possible, throw
 * an exception that halts the program because textFont() has not been used
 * prior to the specified method.
 */
protected void defaultFontOrDeath(String method, float size) {
 if (parent != null) {
  textFont = parent.createDefaultFont(size);
 } else {
  throw new RuntimeException("Use textFont() before " + method + "()");
 }
}
processing.corePAppletcreateDefaultFont

Javadoc

Used by PGraphics to remove the requirement for loading a font!

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

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • getSystemService (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Runner (org.openjdk.jmh.runner)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Github Copilot alternatives
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