I have raised this issue with github support and they are responding, but posting it here so that if anyone has faced and solved it already, can help me.
Nerd and Powerline fonts are not working when connected to codespace via browser. If the same codespace is connected via desktop client, the fonts are displaying correctly. I have installed all the fonts in the container and
fc-list shows them as well.