1
2
3
4
5
6
7 package com.octo.captcha.component.image.fontgenerator;
8
9 import java.awt.*;
10
11 /***
12 * <p>Used by ComposedWordToImage to retrieve a Font to apply to the word that will be distorded</p>
13 *
14 * @author <a href="mailto:mag@jcaptcha.net">Marc-Antoine Garrigue</a>
15 * @version 1.0
16 */
17 public interface FontGenerator {
18
19 /***
20 * Method from imageFromWord method to apply font to String. Implementations must take into account the minFontSize
21 * and the MaxFontSize.
22 *
23 * @return a Font
24 */
25 Font getFont();
26
27 /***
28 * @return the min font size for the generated image
29 */
30 int getMinFontSize();
31
32 /***
33 * @return the max font size for the generated image
34 */
35 int getMaxFontSize();
36
37 }