JSFiddle - React, Tailwind, and code Playground
by zainshaikh
JavaScript
window.stylize_urdu = function() {
var head = document.getElementsByTagName('head')[0];
var style = document.createElement('style');
var cssRules = document.createTextNode("@font-face { font-family: 'NafeesTahreerNaskh'; src: url('http://saqi.co/wp-content/themes/esquire-2/fonts/nafees-tahreer-naskh-regular-1.ttf') format('truetype');}");
var cssRules2 = document.createTextNode("body,a , * {font-family: 'NafeesTahreerNaskh' !important}");
style.appendChild(cssRules);
style.appendChild(cssRules2);
head.appendChild(style);
};