I am trying to understand the anatomy of a font file, and wondering about how glyphs are mapped to keyboard characters.
As part of that, I am also wondering what you do when you have font glyphs that are not part of unicode, such as with FontAwesome icons. FontAwesome uses them in CSS like this:
.fa4-clock-o:before {
content: "\f017";
}
If I wanted to let's say type these icons out using the keyboard, not sure what I would need to do to make that possible.
Wondering if I would have to do one of these:
- Build another font that maps them to ALT keycodes somehow (not sure how ALT codes work in the definition of a font).
- Build a custom keyboard tool that places the correct CSS class on a div (basically don't use the font file / character mapping at all, just build a keyboard tool from scratch).
- Some other approach.
Wondering if one could explain how to accomplish this at a medium level of detail (that is, I don't necessarily need to know the implementation specific details of how to do it yet, unless it's straightforward).