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.FontGenerator
public int getMinFontSize()
getMinFontSize
in interface com.octo.captcha.component.image.fontgenerator.FontGenerator
public 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_CHARACTERS
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.