public interface FontIcon extends Resource
FontIcon is a custom resource type which uses the URI scheme
fonticon://<fontfamily>/<codepoint> to reference a
specific icon from a specific icon font.
| Modifier and Type | Method and Description |
|---|---|
int |
getCodepoint()
Returns the unicode codepoint (character location) for this icon within
the font given in
getFontFamily(). |
String |
getFontFamily()
Returns the name (font family) of the font from which this icon comes.
|
String |
getHtml()
Returns HTML that can be used to display the icon in places where HTML
can be used, such as a
Label with ContentMode.HTML. |
getMIMETypeString getFontFamily()
int getCodepoint()
getFontFamily().
For example, 0x0021 would in a regular font be the codepoint for the
exclamation-point character.
When constructing icon fonts, it might be a good idea to use the
codepoints in the "Private use area", from 0xE000 0xF8FF.
String getHtml()
Label with ContentMode.HTML.Copyright © 2016 Vaadin Ltd. All rights reserved.