I have done this for a custom course format but you need to be very careful because some Moodle YUI relies on img tags and you can break it.
I used css to add the font awesome icons and to hide the img tags, but I had to write custom YUI to catch the icon clicks. For instance show/hide icon changes when you click it.