Sha256: 1821da0bacaca6cc1c17c91bed6a98c45658af3238e67f1a36bf5fe8c6a1b212

Contents?: true

Size: 652 Bytes

Versions: 9

Compression:

Stored size: 652 Bytes

Contents

package wordcram;

import processing.core.PFont;

/**
 * A WordFonter tells WordCram what font to render a word in.
 * <p>
 * Some useful implementations are available in {@link Fonters}.
 * <p>
 * <i>The name "WordFonter" was picked because it matches the others: WordColorer,
 * WordPlacer, WordSizer, etc. Apologies if it sounds a bit weird to your ear; I
 * eventually got used to it.</i>
 *
 * @author Dan Bernier
 */
public interface WordFonter {

    /**
     * What font should this {@link Word} be drawn in?
     * @param word the word to pick the PFont for
     * @return the PFont for the word
     */
    public PFont fontFor(Word word);
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby_wordcram-2.1.1 src/wordcram/WordFonter.java
ruby_wordcram-2.1.0 src/wordcram/WordFonter.java
ruby_wordcram-2.0.6 src/wordcram/WordFonter.java
ruby_wordcram-2.0.5 src/wordcram/WordFonter.java
ruby_wordcram-2.0.4 src/wordcram/WordFonter.java
ruby_wordcram-2.0.3 src/wordcram/WordFonter.java
ruby_wordcram-2.0.2 src/wordcram/WordFonter.java
ruby_wordcram-2.0.1 src/wordcram/WordFonter.java
ruby_wordcram-2.0.0 src/wordcram/WordFonter.java