public final class CoreIcon
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FONT_MAPPING_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
static ITypeface |
findFont(android.content.Context ctx,
java.lang.String key)
tries to find a font by its key in all registered FONTS
|
static ITypeface |
findFont(IIcon icon)
fetches the font from the Typeface of an IIcon
|
static java.util.Collection<ITypeface> |
getRegisteredFonts(android.content.Context ctx)
return all registered FONTS
|
static boolean |
iconExists(android.content.Context context,
java.lang.String icon)
Test if the icon exists in the currently loaded fonts
|
static void |
init(android.content.Context ctx)
initializes the FONTS.
|
static boolean |
registerFont(ITypeface font)
Registers a fonts into the FONTS array for performance
|
public static final int FONT_MAPPING_PREFIX
public static void init(android.content.Context ctx)
public static boolean iconExists(android.content.Context context,
java.lang.String icon)
context - A context to access application resourcesicon - The icon to verifypublic static boolean registerFont(ITypeface font)
public static java.util.Collection<ITypeface> getRegisteredFonts(android.content.Context ctx)
public static ITypeface findFont(android.content.Context ctx, java.lang.String key)