com.octo.captcha.component.image.fontgenerator
Interface FontGenerator

All Known Implementing Classes:
AbstractFontGenerator, DeformedRandomFontGenerator, RandomFontGenerator, TwistedAndShearedRandomFontGenerator, TwistedRandomFontGenerator

public interface FontGenerator

Used by ComposedWordToImage to retrieve a Font to apply to the word that will be distorded


Method Summary
 java.awt.Font getFont()
          Method from imageFromWord method to apply font to String.
 int getMaxFontSize()
           
 int getMinFontSize()
           
 

Method Detail

getFont

java.awt.Font getFont()
Method from imageFromWord method to apply font to String. Implementations must take into account the minFontSize and the MaxFontSize.

Returns:
a Font

getMinFontSize

int getMinFontSize()
Returns:
the min font size for the generated image

getMaxFontSize

int getMaxFontSize()
Returns:
the max font size for the generated image


Copyright 2003-2009 JCaptcha. All Rights Reserved.