public class AtlassianRandomFontGenerator extends Object implements com.octo.captcha.component.image.fontgenerator.FontGenerator
| Constructor and Description |
|---|
AtlassianRandomFontGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected Font |
applyRandomStyle(Font font) |
Font |
getFont() |
int |
getMaxFontSize() |
int |
getMinFontSize() |
protected List<Font> |
getRandomFontsForCaptchas(Iterable<Font> uncheckedFonts,
int fontsToReturn)
Create list of fonts that are not blacklisted for captcha and can display all requiredCharacters.
|
public Font getFont()
getFont in interface com.octo.captcha.component.image.fontgenerator.FontGeneratorpublic int getMinFontSize()
getMinFontSize in interface com.octo.captcha.component.image.fontgenerator.FontGeneratorpublic int getMaxFontSize()
getMaxFontSize in interface com.octo.captcha.component.image.fontgenerator.FontGenerator@NotNull protected List<Font> getRandomFontsForCaptchas(Iterable<Font> uncheckedFonts, int fontsToReturn)
uncheckedFonts - fonts to validate for captcha usagefontsToReturn - return at least that many fontsREQUIRED_CHARACTERSCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.