how to change font family of urdu characters in a textbox

PakArt UrduLover

Thread Starter
in memoriam 1961-2020، May his soul rest in peace
Charismatic
Designer
Expert
Writer
Popular
ITD Observer
ITD Solo Person
ITD Fan Fictionest
ITD Well Wishir
ITD Intrinsic Person
Persistent Person
ITD Supporter
Top Threads Starter
Joined
May 9, 2018
Local time
1:44 PM
Threads
1,354
Messages
7,660
Reaction score
6,959
Points
1,508
Location
Manchester U.K
Gold Coins
112.18
Get Unlimited Tags / Banners
Get Unlimited Tags / Banners
Get Unlimited Tags / Banners
Get Unlimited Tags / Banners
Get Unlimited Tags / Banners
Thread Highlight Unlimited
Thread Highlight Unlimited
This post for learning purposes using jquery to convert the english characters to urdu characters in a text box (asp: server side control ). Now i want to change the font family of these urdu characters. Is there any way or any library, having a collection of font families, to change the font family?

Please use inline CSS in your div,span,p or any tag in :

for HTML:

<input style="font-family:Georgia, Serif" value="اڈوبی عریبک بولڈ"/>​
for asp:

<asp:textbox id = Textbox1 runat ="server" style="font-family:Georgia, Serif" />
Here is the code for that font-family:

Please, Log in or Register to view URLs content!


Now, you can use: @font-face to apply this to use own website.

You should have seen this code in the website's HTML Inspector. It was just there at the end of the code.

For @font-face:
Please, Log in or Register to view URLs content!


HTML: <style>@font-face { font-family: myFirstFont; src: url(nafees_web_naskhshipped.eot); } div { font-family:myFirstFont; } </style> </head> <body> <div> وہ ہر چند چاہیں گے کہ آگ سے نکل جائیں مگر اس سے نہیں نکل سکیں گے اور ان کیلئے ہمیشہ کا عذاب ہے۔ اور چوری کرنے والا مرد اور چوری کرنے والی عورت ان کا ایک ایک ہاتھ کاٹ دو ، یہ ان کے کرتوتوں کی سزا اور اللہ کی طرف سے عبرت کے طور پر ہے اور اللہ زبردست ہے صاحب حکمت ہے۔ پھر جو شخص گناہ کے بعد توبہ کرلے اور نیکو کار ہو جائے تو اللہ اسکو معاف کردے گا، کچھ شک نہیں کہ اللہ بڑا بخشنے والا ہے بڑا مہربان ہے۔ </div> </body> </html> –
 

Doctor

⭐⭐⭐⭐⭐⭐
Charismatic
Designer
Expert
Writer
Popular
King of Alkamunia
ITD Supporter 🏆
Proud Pakistani
الکمونیا میں تو ایسا نہیں ہوتا
ITD Developer
Top Poster
Top Poster Of Month
Joined
Apr 25, 2018
Local time
5:44 PM
Threads
842
Messages
12,145
Reaction score
14,148
Points
1,801
Age
47
Location
Rawalpindi
Gold Coins
3,353.34
Get Unlimited Tags / Banners
Permanently Change Username Color & Style.
Get Unlimited Tags / Banners
Get Unlimited Tags / Banners
Thread Highlight Unlimited
Change Username Style.
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock    No Thanks