This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Produce a formatted SpannableString object from a given String | |
* input, with all lowercase characters converted to smallcap | |
* characters. Uses only standard A-Z characters, so works with | |
* any font. | |
* | |
* @param input The input string, e.g. "Small Caps" | |
* @return A formatted SpannableString, e.g. "Sᴍᴀʟʟ Cᴀᴘs" | |
*/ | |
public static SpannableString getSmallCapsString(String input) { |