How to add Hindi, Tamil, Bengali fonts using Google Fonts API?

Indian web developers rejoice - Google's web font has now included three Indian languages in their international 'local language fonts'. Currently the 'early access' shows 9 international languages viz. Arabic, Lao, Ethiopic, Tamil, Thai, Bengali, Hindi, Korean, and Burmese. Now, it'll be very easy for the developers and web-masters to include support to all these languages in the web applications.

Google Web Fonts is a font delivery service which eliminates the need of installing the fonts locally. All you need is a simple JavaScript code that will fetch the relevant font from Google's servers and deliver them to the web-browser. Here's an example -

If you wish to include Hindi font -

Include in header -
@import url(https://fonts.googleapis.com/earlyaccess/lohitdevanagari.css);
CSS -
font-family: 'Lohit Devanagari', serif;
You will now be able to display Hindi on your web-site. Those who want to give it a try can use above code. The Google API will be delivered through a content delivery network so the loading time of these fonts is minimal - at least, it won't cause your web applications to load slower.

Replies

You are reading an archived discussion.

Related Posts

Android 4.2 has been announced and it comes with 'Photo Sphere Camera'. Android OS was missing the photo stitching feature for a long time and decided to make it a...
I think Android 4.2 is taking on iOS heads on. If you own an iPad with all custom settings; you can't easily share it with another user; because there's no...
Hey guys just as we are discussing on the effects of Sandy in America we left the one in our own country https://www.ndtv.com/article/cheat-sheet/cyclone-nilam-to-hit-tamil-nadu-at-100-kmph-286262 This tells detail statistics of Cyclone Nilam...
What exactly are they? can some one tell in detail about Malware and stuff like that https://www.crazyengineers.com/skype-affected-by-malware-in-india-5091/ This sparked me to know more how will I be able to know...