WestNIC provides reliable web hosting services
Fastwebhost offers cheap web hosting & reseller hosting services
Unicode is the Web standard to represent symbols and icons in HTML and CSS. Unicode provides universal key bindings which have semantic meaning that matches their graphical representation.
Some system fonts have the Unicode coverage necessary to display some standard icons, they do not necessarily have the aesthetics that designers seek to render them. Custom Web fonts delivered with the @font-face rule can deliver the aesthetics and the semantics if icon glyphs are mapped to the appropriate Unicode code point.
See Scalable Web font icons further below for a background discussion.
The icons below are rendered in a custom Web font with each glyph mapped to an appropriate Unicode entity. The icons are scalable, meaningful and cross-browser compabible. You can apply all standard CSS styles normally used with HTML text.
ࣾℹ♡⚙⚿✉✎ ✓❌💬This example uses extracts from the free trial version of the IcoMoon Web font.
The lists below identify standard Unicode code points that should be used to configure custom @font-face icon fonts. The entities on this page are rendered using your standard system fonts and may not be pretty, some glyphs may be missing altogether, but the entities have meaning.
In Unicode a smiley ☺ means a smiley.
⌚☎ see also ☏ and ✆✉✎ see also ✏ ✐ and ✑📕📖+↺↻−⌁ see also ❏ and ❐☐☑☒✓✔❌ℹ⚠⛔ࣾ♲⚓⚙💬💭📅📌📍📷🔖🕐☺☺♡ see also ♥ and ❤ for playing cards👨👩💡🔊⚿🔐🔒🔓 🔇🔈🔉🔊In Ever thought about using @font-face for icons? Wayne Helman uses a custom Web font mapped to standard ASCII characters. In this case the meaning of the letter “a” is mapped to a star icon, “b” is an RSS icon. This approach creates a mis-match between the meaning of the letter and its representation.
P.J. Onori's article Font-embedding icons: this is a big deal elaborates Helman's CSS generated content technique to keep the icon-mapped characters out of the published HTML markup, which minimises the mis-match in meaning.
Both these examples use custom @font-face fonts to substitute placeholder characters with the desired icon glyph, but they do not degrade well. Web icons should be written in standard Unicode character literals, HTML entities (as above) and CSS generated content, e.g.
.smiley:before{// 9786 decimal = 263A hexadecimalcontent:'\263A'; }
Custom Web fonts should assign icon glyphs to the same standard Unicode code points so they upgrade the original content, enhance and standardise the aesthetics of the icons and retain their fundamental semantics. It is not necessary to map or hide the original characters.
.smiley {
// Font has icon glyphs for specific code points
font-family: "Custom Icon Font", serif;
}
Icon concepts that do not have a standard Unicode code point can be assigned a value in the private use character ranges.