public class TypefaceProvider
extends java.lang.Object
Constructor and Description |
---|
TypefaceProvider() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<IconSet> |
getRegisteredIconSets()
Retrieves a collection of all registered IconSets in the application
|
static Typeface |
getTypeface(Context context,
IconSet iconSet)
Returns a reference to the requested typeface, creating a new instance if none already exists
|
static void |
registerCustomIconSet(IconSet iconSet)
Registers a custom IconSet, so that it is available for use throughout the whole application.
|
static void |
registerDefaultIconSets()
Registers instances of the Default IconSets so that they are available throughout the whole
application.
|
static IconSet |
retrieveRegisteredIconSet(java.lang.String fontPath,
boolean editMode)
Retrieves a registered IconSet whose font can be found in the asset directory at the given path
|
public static Typeface getTypeface(Context context, IconSet iconSet)
context
- the current contexticonSet
- the icon typefacepublic static void registerDefaultIconSets()
public static void registerCustomIconSet(IconSet iconSet)
iconSet
- a custom IconSetpublic static IconSet retrieveRegisteredIconSet(java.lang.String fontPath, boolean editMode)
fontPath
- the given patheditMode
- - whether the view requesting the icon set is displayed in the preview editorpublic static java.util.Collection<IconSet> getRegisteredIconSets()