<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Simple Devanagari shaping</title> <style> @font-face { font-family: lohit-hi; src: url(../fonts/ttf-indic/lohit_hi.ttf); } body { font-family: lohit-hi; font-size: 36px; margin: 18px; } .w { color: white; } </style> </head> <body> <!-- Ra that forms Reph should not contribute any width --> <div> !<span class="w">र्ह</span>! </div> </body> </html>