From text to icon

So there is no way of doing something like this?

content:'fa d-icon d-icon-reply'; 

If not, how would the code look like for the following method? I just need an example from where to start, because I tried basic css and there is no effect.

Kindly appreciated!