Used for e.g. Emoji. Holds all CharacterProvider instances. When a character is not found in the font, PowerUI checks with these character providers to see if any of them can provide it instead. Add custom providers if you have your own set of images to add.
Static Public Member Functions | |
static void | Setup () |
Adds the default character providers. Called by UI.Start. More... | |
static void | Add (CharacterProvider provider) |
Adds the given character provider to the set of Providers. More... | |
static int | InsertIndex (CharacterProvider provider) |
Finds the index where the given provider should be inserted at. More... | |
static int | SearchFor (int code) |
Searches for the most suitable index for the given character code. More... | |
static CharacterProvider | FindFor (int code) |
Attempts to find the character provider for a character of the given charcode. More... | |
static Glyph | Find (int charcode) |
Attempts to find and apply an image to the given character. More... | |
static void | FindInto (Glyph loadInto, int charcode) |
Attempts to find and apply an image to the given character. More... | |
Static Public Attributes | |
static bool | FixHeight |
True if emoji should render at a fixed (original) height. Otherwise it will render at a best-guess fontsize height. More... | |
static string | EmojiPath ="resources://Characters" |
The path where emoji chars are found. Any ordinary URL, but must be set before you call UI.Start. More... | |
static List< CharacterProvider > | Providers |
The set of all available character providers. More... | |
static Dictionary< int, Glyph > | CachedCharacters |
Cached loaded characters. More... | |
Static Private Attributes | |
static bool | Started |
True when this has been Setup. More... | |
|
inlinestatic |
Adds the given character provider to the set of Providers.
provider | The provider to add. |
|
inlinestatic |
Attempts to find and apply an image to the given character.
character | The on screen character to attempt to find an image for. |
|
inlinestatic |
Attempts to find the character provider for a character of the given charcode.
code | The charcode of the character to look for. |
|
inlinestatic |
Attempts to find and apply an image to the given character.
character | The on screen character to attempt to find an image for. |
|
inlinestatic |
Finds the index where the given provider should be inserted at.
provider | The provider to add. |
|
inlinestatic |
Searches for the most suitable index for the given character code.
code | The charcode to look for. |
|
inlinestatic |
Adds the default character providers. Called by UI.Start.
|
static |
Cached loaded characters.
|
static |
|
static |
True if emoji should render at a fixed (original) height. Otherwise it will render at a best-guess fontsize height.
|
static |
The set of all available character providers.
|
staticprivate |
True when this has been Setup.